protected void SetTableInfo(System.Type entityType, Action <AuditTableAttribute> tableInfo) { var attr = new AuditTableAttribute(string.Empty); tableInfo(attr); AttributeCollection.Add(new MemberInfoAndAttribute(entityType, attr)); }
private void addAuditTable(System.Type typ) { AuditTableAttribute auditTable = (AuditTableAttribute)Attribute.GetCustomAttribute(typ, typeof(AuditTableAttribute)); //AuditTableAttribute auditTable = clazz.getAnnotation(AuditTable.class); if (auditTable != null) { _auditData.AuditTable = auditTable; } else { _auditData.AuditTable = getDefaultAuditTable(); } }