Categories are a way to organize posts. A post can be in multiple categories.

Namespace: BlogEngine.Core
Assembly:  BlogEngine.Core (in BlogEngine.Core.dll)
Version: 1.2.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
[SerializableAttribute]
public class Category : BusinessBase<Category, Guid>
<SerializableAttribute> _
Public Class Category _
	Inherits BusinessBase(Of Category, Guid)
[SerializableAttribute]
public ref class Category : public BusinessBase<Category^, Guid>

Members

               
 All Members  Constructors Public method  Properties Public property  Methods Public method  Events Public event 
 Public

 Protected
 Instance

 Static Static member
 Declared

 Inherited
 XNA Framework Only Supported by the XNA Framework

 .NET Compact Framework Only Supported by the .NET Compact Framework

 MemberDescription
Public methodCategoryCategoryNew()()
Initializes a new instance of the Category class.
Public methodCategoryCategoryNew(String, String)
Protected methodAddRule(String, String, Boolean)
Add or remove a broken rule.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public propertyStatic memberCategories
Gets an unsorted list of all Categories.
Protected methodDataDelete()()
Deletes the object from the data store.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::DataDelete()().)
Protected methodDataInsert()()
Inserts a new object to the data store.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::DataInsert()().)
Protected methodDataSelect(Guid)
Retrieves the object from the data store and populates it.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::DataSelect(KEY).)
Protected methodDataUpdate()()
Updates the object in its data store.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::DataUpdate()().)
Public propertyDateCreated
The date on which the instance was created.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public propertyDateModified
The date on which the instance was modified.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public methodDelete()()
Marks the object for deletion. It will then be deleted when the object's Save() method is called.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public propertyDescription
Gets or sets the Description or the object.
Protected propertyDirtyProperties
A collection of the properties that have been marked as being dirty.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Protected methodDispose(Boolean)
Disposes the object and frees ressources for the Garbage Collector.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public methodEquals(Object)
Comapares this object with another
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Protected methodFinalize()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetCategory(Guid)
Returns a category based on the specified id.
Public methodGetHashCode()()
A uniquely key to identify this particullar instance of the class
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public methodGetType()()
Gets the Type of the current instance.
(Inherited from Object.)
Public propertyId
Gets the unique Identification of the object.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public propertyIsDeleted
Gets if this object is marked for deletion.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public propertyIsDirty
Gets if this object's data has been changed.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Protected propertyIsDisposed
Gets or sets if the object has been disposed.

Remarks

If the objects is disposed, it must not be disposed a second time. The IsDisposed property is set the first time the object is disposed. If the IsDisposed property is true, then the Dispose() method will not dispose again. This help not to prolong the object's life if the Garbage Collector.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public propertyIsNew
Gets if this is a new object, False if it is a pre-existing object.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Protected methodIsPropertyDirty(String)
Check whether or not the specified property has been changed
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Protected methodIsPropertyDirty(array<String>[]())
Check whether or not the specified properties has been changed
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public propertyIsValid
Gets whether the object is valid or not.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Protected methodMarkDirty(String)
Marks an object as being dirty, or changed.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public eventMarkedDirty
Occurs when this instance is marked dirty. It means the instance has been changed but not saved.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public methodMarkOld()()
Marks the object as being an clean, which means not dirty.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Protected methodMemberwiseClone()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnMarkedDirty()()
Raises the MarkedDirty event safely.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public methodSave()()
Saves the object to the database.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::Save()().)
Public propertyTitle
Gets or sets the Title or the object.
Public methodToString()()
Returns a String that represents the current Object.
(Overrides Object..::ToString()().)
Public propertyValidationMessage
If the object has broken business rules, use this property to get access to the different validation messages.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Protected methodValidationRules()()
Reinforces the business rules by adding additional rules to the broken rules collection.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::ValidationRules()().)

Inheritance Hierarchy

System..::Object
  BlogEngine.Core..::BusinessBase<(Of <Category, Guid>)>
    BlogEngine.Core..::Category

See Also

BlogEngine.Core Namespace