Syntax

         
 C#  Visual Basic  Visual C++ 
[SerializableAttribute]
public abstract class BusinessBase<TYPE, KEY> where TYPE : new(), BusinessBase<TYPE, KEY>
<SerializableAttribute> _
Public MustInherit Class BusinessBase(Of TYPE As {New, BusinessBase(Of TYPE, KEY)}, KEY)
[SerializableAttribute]
generic<typename TYPE, typename KEY>
where TYPE : gcnew(), BusinessBase<TYPE, KEY>
public ref class BusinessBase abstract

Type Parameters

TYPE
KEY

The type exposes the following methods.

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

 MemberDescription
Protected methodAddRule(String, String, Boolean)
Add or remove a broken rule.
Protected methodDataDelete()()
Deletes the object from the data store.
Protected methodDataInsert()()
Inserts a new object to the data store.
Protected methodDataSelect(KEY)
Retrieves the object from the data store and populates it.
Protected methodDataUpdate()()
Updates the object in its data store.
Public methodDelete()()
Marks the object for deletion. It will then be deleted when the object's Save() method is called.
Public methodDispose()()
Disposes the object and frees ressources for the Garbage Collector.
Protected methodDispose(Boolean)
Disposes the object and frees ressources for the Garbage Collector.
Public methodStatic memberEquality(BusinessBase<(Of <TYPE, KEY>)>, BusinessBase<(Of <TYPE, KEY>)>)
Checks to see if two business objects are the same.
Public methodEquals(Object)
Comapares this object with another
(Overrides Object..::Equals(Object).)
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 methodGetHashCode()()
A uniquely key to identify this particullar instance of the class
(Overrides Object..::GetHashCode()().)
Public methodGetType()()
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberInequality(BusinessBase<(Of <TYPE, KEY>)>, BusinessBase<(Of <TYPE, KEY>)>)
Checks to see if two business objects are different.
Protected methodIsPropertyDirty(String)
Check whether or not the specified property has been changed
Protected methodIsPropertyDirty(array<String>[]())
Check whether or not the specified properties has been changed
Public methodStatic memberLoad(KEY)
Loads an instance of the object based on the Id.
Protected methodMarkDirty(String)
Marks an object as being dirty, or changed.
Public methodMarkOld()()
Marks the object as being an clean, which means not dirty.
Protected methodMemberwiseClone()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnMarkedDirty()()
Raises the MarkedDirty event safely.
Protected methodStatic memberOnSaved(BusinessBase<(Of <TYPE, KEY>)>, SaveAction)
Raises the Saved event.
Protected methodStatic memberOnSaving(BusinessBase<(Of <TYPE, KEY>)>, SaveAction)
Raises the Saving event
Public methodSave()()
Saves the object to the database.
Public methodToString()()
Returns a String that represents the current Object.
(Inherited from Object.)
Protected methodValidationRules()()
Reinforces the business rules by adding additional rules to the broken rules collection.

See Also

BlogEngine.Core Namespace