Example #1
0
        public static EntitySchema FromDictionary(IDictionary <string, object> record, string entityName)
        {
            var res = new EntitySchema()
            {
                Name = entityName
            };

            foreach (var key in record.Keys)
            {
                res.Fields.Add(new FieldSchema()
                {
                    Name         = key,
                    IsPrimaryKey = ("Id".Equals(key))
                });
            }
            return(res);
        }
 public SqlServerDialectProvider(EntitySchema schema)
 {
     Schema = schema;
 }