예제 #1
0
        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));
        }
예제 #2
0
 public Reflector(Assembly assembly)
 {
     this.objectDefHeaders = MetadataReflector.GetAllObjectDefHeaders(assembly);
     this.objDefsEnriched  = new ObjDefs(this.objectDefHeaders.Values);
     this.metadata         = MetadataReflector.ReflectMetadata(this.objectDefHeaders);
 }