public bool RegisterAuditableEntityIfNeeded(PersistentClass pc) { string entityName = pc.EntityName; if (!pc.MetaAttributes.ContainsKey(GetAuditableClassMarker())) { return false; } var meta = new AuditableMetaData(entityName); string marker = GetAuditablePropertyMarker(); meta.AddProperties(pc.PropertyIterator .Where(p => p.MetaAttributes .Where(ma => ma.Value.Name == marker && (!ma.Value.Values.Contains("false"))).Count() > 0) .Select(p => p.Name)); store.Add(entityName, meta); return true; }
public bool RegisterAuditableEntityIfNeeded(PersistentClass pc) { string entityName = pc.EntityName; if (!pc.MetaAttributes.ContainsKey(GetAuditableClassMarker())) { return(false); } var meta = new AuditableMetaData(entityName); string marker = GetAuditablePropertyMarker(); meta.AddProperties(pc.PropertyIterator .Where(p => p.MetaAttributes .Where(ma => ma.Value.Name == marker && (!ma.Value.Values.Contains("false"))).Count() > 0) .Select(p => p.Name)); store.Add(entityName, meta); return(true); }