private static object CreateInstance(Type type, IReadOnlyDictionary <string, object> row) { var entity = CreateDefault(type); var properties = PortableType.Create(type).Properties; foreach (var i in properties) { i.SetValue(entity, Base(i, row)); } return(entity); }
public static string LeftJoinsUnion(Type type, string ns) => Properties(PortableType.Create(type), ns, SerializeOption.LeftJoinsUnion, Serializer.Serialize);
public static string ColumnsUnion(Type type, string ns) => Properties(PortableType.Create(type), ns, SerializeOption.ColumnsUnion, Serializer.Serialize)[0..^ 1];