Class BaseMetaObjectExtension
Represens base class for meta object extension.
Inherited Members
Namespace: Mediachase.BusinessFoundation.Data.Meta
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 10.8.0Syntax
public class BaseMetaObjectExtension : IMetaObjectExtension, IDisposable, IChangeTracking
Remarks
The BaseMetaObjectExtension class implements IMetaObjectExtension and provides utility methods.
Constructors
BaseMetaObjectExtension()
Initializes a new instance of the BaseMetaObjectExtension class.
Declaration
public BaseMetaObjectExtension()
Properties
ExtensionInfo
Gets or sets the extension info.
Declaration
protected MetaObjectExtensionInfo ExtensionInfo { get; set; }
Property Value
Type | Description |
---|---|
MetaObjectExtensionInfo | The extension info. |
IsChanged
Gets a value indicating whether this instance is changed.
Declaration
protected virtual bool IsChanged { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Owner
Gets or sets the owner.
Declaration
protected MetaObject Owner { get; set; }
Property Value
Type | Description |
---|---|
MetaObject | The owner. |
Methods
AcceptChanges()
Accepts the changes.
Declaration
protected virtual void AcceptChanges()
Clone(MetaObject)
Clones the specified dest object.
Declaration
protected virtual void Clone(MetaObject destObject)
Parameters
Type | Name | Description |
---|---|---|
MetaObject | destObject | The destination object. |
Delete()
Informs service after delete object.
Declaration
protected virtual void Delete()
Dispose(Boolean)
Disposes the specified free managed resources.
Declaration
protected virtual void Dispose(bool freeManagedResources)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | freeManagedResources | if set to |
Init(MetaObjectExtensionInfo, MetaObject)
Inits services.
Declaration
protected virtual void Init(MetaObjectExtensionInfo info, MetaObject owner)
Parameters
Type | Name | Description |
---|---|---|
MetaObjectExtensionInfo | info | The meta object information. |
MetaObject | owner | The owner. |
PreSave()
Informs service before save object.
Declaration
protected virtual void PreSave()
Save()
Informs service after save object.
Declaration
protected virtual void Save()
Explicit Interface Implementations
IChangeTracking.AcceptChanges()
Accepts the changes.
Declaration
void IChangeTracking.AcceptChanges()
IChangeTracking.IsChanged
Gets a value indicating whether this instance is changed.
Declaration
bool IChangeTracking.IsChanged { get; }
Returns
Type | Description |
---|---|
System.Boolean |
|
IMetaObjectExtension.Clone(MetaObject)
Clones the specified dest object.
Declaration
void IMetaObjectExtension.Clone(MetaObject destObject)
Parameters
Type | Name | Description |
---|---|---|
MetaObject | destObject | The destination object. |
IMetaObjectExtension.Delete()
Informs service after delete object.
Declaration
void IMetaObjectExtension.Delete()
IMetaObjectExtension.Init(MetaObjectExtensionInfo, MetaObject)
Inits services.
Declaration
void IMetaObjectExtension.Init(MetaObjectExtensionInfo info, MetaObject owner)
Parameters
Type | Name | Description |
---|---|---|
MetaObjectExtensionInfo | info | The meta object information. |
MetaObject | owner | The owner meta object. |
IMetaObjectExtension.PreSave()
Informs service before save object.
Declaration
void IMetaObjectExtension.PreSave()
IMetaObjectExtension.Save()
Informs service after save object.
Declaration
void IMetaObjectExtension.Save()
IDisposable.Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
void IDisposable.Dispose()