LLBLGen Pro Generic Auditor.
Namespace: MonoSoftware.LLBLGenUsage:
Create Audit Entity table in Database and create it with LLBLGen O/R Mapper.
Go to the Audit Entity class and implement IAuditInfoEntity inside that class.
Derive the class that iherits from [!:LLBLGenProGenericAuditor] and pass in your audit entity as a type.
Add this attribute to derived class: "[DependencyInjectionInfo(typeof(IEntity2), "AuditorToUse")]"
Enable LLBLGen Dependency Injection. - http://www.llblgen.com/documentation/2.6/Using%20the%20generated%20code/gencode_usingdi.htm
Assembly: MonoSoftware.LLBLGen (in MonoSoftware.LLBLGen.dll) Version: 1.0.40.661 (1.0.40.661)
Syntax
C# |
---|
[SerializableAttribute] public abstract class LLBLGenProGenericAuditor<TAuditInfoEntity> : AuditorBase where TAuditInfoEntity : new(), IAuditInfoEntity |
Visual Basic |
---|
<SerializableAttribute> Public MustInherit Class LLBLGenProGenericAuditor(Of TAuditInfoEntity As {New, IAuditInfoEntity}) Inherits AuditorBase |
Visual C++ |
---|
[SerializableAttribute] generic<typename TAuditInfoEntity> where TAuditInfoEntity : gcnew(), IAuditInfoEntity public ref class LLBLGenProGenericAuditor abstract : public AuditorBase |
F# |
---|
[<AbstractClassAttribute>] [<SerializableAttribute>] type LLBLGenProGenericAuditor<'TAuditInfoEntity when 'TAuditInfoEntity : new() and IAuditInfoEntity> = class inherit AuditorBase end |
Type Parameters
- TAuditInfoEntity
- Audit information entity
Inheritance Hierarchy
System..::..Object
AuditorBase
MonoSoftware.LLBLGen..::..LLBLGenProGenericAuditor<(Of <(<'TAuditInfoEntity>)>)>
AuditorBase
MonoSoftware.LLBLGen..::..LLBLGenProGenericAuditor<(Of <(<'TAuditInfoEntity>)>)>