public AuditMetadataGenerator(IMetaDataStore metaDataStore, Cfg.Configuration cfg, GlobalConfiguration globalCfg, AuditEntitiesConfiguration verEntCfg, XElement revisionInfoRelationMapping, AuditEntityNameRegister auditEntityNameRegister) { Cfg = cfg; GlobalCfg = globalCfg; VerEntCfg = verEntCfg; _metaDataStore = metaDataStore; this.revisionInfoRelationMapping = revisionInfoRelationMapping; BasicMetadataGenerator = new BasicMetadataGenerator(); componentMetadataGenerator = new ComponentMetadataGenerator(this); idMetadataGenerator = new IdMetadataGenerator(this); toOneRelationMetadataGenerator = new ToOneRelationMetadataGenerator(this); AuditEntityNameRegister = auditEntityNameRegister; EntitiesConfigurations = new Dictionary <string, EntityConfiguration>(); NotAuditedEntitiesConfigurations = new Dictionary <string, EntityConfiguration>(); entitiesJoins = new Dictionary <string, IDictionary <Join, XElement> >(); }
public AuditMetadataGenerator(Cfg.Configuration cfg, GlobalConfiguration globalCfg, AuditEntitiesConfiguration verEntCfg, IAuditStrategy auditStrategy, XmlElement revisionInfoRelationMapping, AuditEntityNameRegister auditEntityNameRegister) { Cfg = cfg; GlobalCfg = globalCfg; VerEntCfg = verEntCfg; AuditStrategy = auditStrategy; this.revisionInfoRelationMapping = revisionInfoRelationMapping; BasicMetadataGenerator = new BasicMetadataGenerator(); componentMetadataGenerator = new ComponentMetadataGenerator(this); idMetadataGenerator = new IdMetadataGenerator(this); toOneRelationMetadataGenerator = new ToOneRelationMetadataGenerator(this); AuditEntityNameRegister = auditEntityNameRegister; EntitiesConfigurations = new Dictionary<string, EntityConfiguration>(); NotAuditedEntitiesConfigurations = new Dictionary<string, EntityConfiguration>(); entitiesJoins = new Dictionary<string, IDictionary<Join, XmlElement>>(); }
public AuditMetadataGenerator(Cfg.Configuration cfg, GlobalConfiguration globalCfg, AuditEntitiesConfiguration verEntCfg, XmlElement revisionInfoRelationMapping, AuditEntityNameRegister auditEntityNameRegister, ClassesAuditingData classesAuditingData) { this.Cfg = cfg; this.GlobalCfg = globalCfg; this.VerEntCfg = verEntCfg; this.revisionInfoRelationMapping = revisionInfoRelationMapping; this.BasicMetadataGenerator = new BasicMetadataGenerator(); this.componentMetadataGenerator = new ComponentMetadataGenerator(this); this.idMetadataGenerator = new IdMetadataGenerator(this); this.toOneRelationMetadataGenerator = new ToOneRelationMetadataGenerator(this); this.AuditEntityNameRegister = auditEntityNameRegister; this.ClassesAuditingData = classesAuditingData; EntitiesConfigurations = new Dictionary<String, EntityConfiguration>(); NotAuditedEntitiesConfigurations = new Dictionary<String, EntityConfiguration>(); entitiesJoins = new Dictionary<String, IDictionary<Join, XmlElement>>(); }