Esempio n. 1
0
        public IConfigureTable <T> ForeignKeyFrom <TParent>(Action <IConfigureForeignKeys <T, TParent> > cfg, string name = null)
        {
            var data = new ForeignKeyDefinition()
            {
                Name = name
            };
            var f = new FKConfig <T, TParent>(data, SqlFuManager.Config.TableInfoFactory);

            cfg(f);
            _data.ForeignKeys.Add(data);
            return(this);
        }
Esempio n. 2
0
 public FKConfig(ForeignKeyDefinition data, ITableInfoFactory infos)
 {
     _data  = data;
     _infos = infos;
 }