This is the base class from which most business objects will be derived.
To create a business object, inherit from this class.
Namespace: BlogEngine.Core
Assembly: BlogEngine.Core (in BlogEngine.Core.dll)
Version: 1.2.0.0
Syntax
| C# | Visual Basic | Visual C++ |
[SerializableAttribute] public abstract class BusinessBase<TYPE, KEY> : IDisposable where TYPE : new(), BusinessBase<TYPE, KEY>
<SerializableAttribute> _ Public MustInherit Class BusinessBase(Of TYPE As {New, BusinessBase(Of TYPE, KEY)}, KEY) _ Implements IDisposable
[SerializableAttribute] generic<typename TYPE, typename KEY> where TYPE : gcnew(), BusinessBase<TYPE, KEY> public ref class BusinessBase abstract : IDisposable
Type Parameters
- TYPE
- The type of the derived class.
- KEY
- The type of the Id property.
Members
| All Members | Constructors | Properties | Methods | Events |
| Member | Description | |
|---|---|---|
| BusinessBase<(Of <TYPE, KEY>)>BusinessBase<(Of <TYPE, KEY>)>New()() | ||
| 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.
| |
| DateCreated |
The date on which the instance was created.
| |
| DateModified |
The date on which the instance was modified.
| |
| Delete()() |
Marks the object for deletion. It will then be
deleted when the object's Save() method is called.
| |
| DirtyProperties |
A collection of the properties that have
been marked as being dirty.
| |
| 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.) | |
| Id |
Gets the unique Identification of the object.
| |
| Inequality(BusinessBase<(Of <TYPE, KEY>)>, BusinessBase<(Of <TYPE, KEY>)>) |
Checks to see if two business objects are different.
| |
| IsDeleted |
Gets if this object is marked for deletion.
| |
| IsDirty |
Gets if this object's data has been changed.
| |
| IsDisposed |
Gets or sets if the object has been disposed.
| |
| IsNew |
Gets if this is a new object, False if it is a pre-existing object.
| |
| 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
| |
| IsValid |
Gets whether the object is valid or not.
| |
| Load(KEY) |
Loads an instance of the object based on the Id.
| |
| MarkDirty(String) |
Marks an object as being dirty, or changed.
| |
| MarkedDirty |
Occurs when this instance is marked dirty.
It means the instance has been changed but not saved.
| |
| 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.
| |
| Saved |
Occurs when the class is Saved
| |
| Saving |
Occurs when the class is Saved
| |
| ToString()() | (Inherited from Object.) | |
| ValidationMessage |
If the object has broken business rules, use this property to get access
to the different validation messages.
| |
| ValidationRules()() |
Reinforces the business rules by adding additional rules to the
broken rules collection.
|
Inheritance Hierarchy
System..::Object
BlogEngine.Core..::BusinessBase<(Of <TYPE, KEY>)>
BlogEngine.Core..::Category
BlogEngine.Core..::Post
BlogEngine.Core..::Page
BlogEngine.Core..::BusinessBase<(Of <TYPE, KEY>)>
BlogEngine.Core..::Category
BlogEngine.Core..::Post
BlogEngine.Core..::Page
See Also
BlogEngine.Core Namespace