internal static DataEntity ToDataEntity <T>(T a, QueryEntity queryEntity = null) { var assembly = Assembly.GetAssembly(typeof(T)); var m = MetadataReflector.GetAllObjectDefHeaders(assembly); var ods = new ObjDefs(m.Values); return(ToDataEntity(a, queryEntity, ods)); }
public Reflector(Assembly assembly) { this.objectDefHeaders = MetadataReflector.GetAllObjectDefHeaders(assembly); this.objDefsEnriched = new ObjDefs(this.objectDefHeaders.Values); this.metadata = MetadataReflector.ReflectMetadata(this.objectDefHeaders); }