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.
| Member | Description | |
|---|---|---|
| AddRule(String, String, Boolean) |
Add or remove a broken rule.
| |
| DataDelete()() |
Deletes the object from the data store.
| |
| DataInsert()() |
Inserts a new object to the data store.
| |
| DataSelect(KEY) |
Retrieves the object from the data store and populates it.
| |
| DataUpdate()() |
Updates the object in its data store.
| |
| Delete()() |
Marks the object for deletion. It will then be
deleted when the object's Save() method is called.
| |
| Dispose()() |
Disposes the object and frees ressources for the Garbage Collector.
| |
| Dispose(Boolean) |
Disposes the object and frees ressources for the Garbage Collector.
| |
| Equality(BusinessBase<(Of <TYPE, KEY>)>, BusinessBase<(Of <TYPE, KEY>)>) |
Checks to see if two business objects are the same.
| |
| Equals(Object) |
Comapares this object with another
(Overrides Object..::Equals(Object).) | |
| Finalize()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()() |
A uniquely key to identify this particullar instance of the class
(Overrides Object..::GetHashCode()().) | |
| GetType()() | Gets the Type of the current instance. (Inherited from Object.) | |
| Inequality(BusinessBase<(Of <TYPE, KEY>)>, BusinessBase<(Of <TYPE, KEY>)>) |
Checks to see if two business objects are different.
| |
| IsPropertyDirty(String) |
Check whether or not the specified property has been changed
| |
| IsPropertyDirty(array<String>[]()) |
Check whether or not the specified properties has been changed
| |
| Load(KEY) |
Loads an instance of the object based on the Id.
| |
| MarkDirty(String) |
Marks an object as being dirty, or changed.
| |
| MarkOld()() |
Marks the object as being an clean,
which means not dirty.
| |
| MemberwiseClone()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| OnMarkedDirty()() |
Raises the MarkedDirty event safely.
| |
| OnSaved(BusinessBase<(Of <TYPE, KEY>)>, SaveAction) |
Raises the Saved event.
| |
| OnSaving(BusinessBase<(Of <TYPE, KEY>)>, SaveAction) |
Raises the Saving event
| |
| Save()() |
Saves the object to the database.
| |
| ToString()() | (Inherited from Object.) | |
| ValidationRules()() |
Reinforces the business rules by adding additional rules to the
broken rules collection.
|
See Also
BlogEngine.Core Namespace