public ManyToOneNode( Func <TNew, TNewProp> newProp, Expression <Func <TDb, TDbProp> > dbValue, DiffDsl <TNewProp, TDbProp, TChildKey, TUserId> DiffDsl) { this.NewProp = newProp; this.dbValue = dbValue; this.DiffDsl = DiffDsl; }
public DiffDsl <TNew, TDb, TKey, TUserId> AddOne <TNewProp, TDbProp, TChildKey>( Func <TNew, TNewProp> newProp, Expression <Func <TDb, TDbProp> > dbValue, DiffDsl <TNewProp, TDbProp, TChildKey, TUserId> diffDsl) where TDbProp : AbstractDatabaseRecord <TChildKey, TNewProp>, new() where TNewProp : class { this.manyToOneNodes.Add(new ManyToOneNode <TNewProp, TDbProp, TChildKey>( newProp, dbValue, diffDsl)); return(this); }
public ManyToManyNode( Func <TNewProp, TChildKey> newPropKey, Func <TNew, IEnumerable <TNewProp> > newProp, Func <TDb, List <TDbProp> > dbValue, Action <TDbProp, TDb> setParent, DiffDsl <TNewProp, TDbProp, TChildKey, TUserId> diffDsl) { this.NewPropKey = newPropKey; this.NewProp = newProp; this.DbValue = dbValue; this.SetParent = setParent; this.DiffDsl = diffDsl; }
public DiffDsl <TNew, TDb, TKey, TUserId> AddMany <TNewProp, TDbProp, TChildKey>( Func <TNewProp, TChildKey> newPropKey, Func <TNew, IEnumerable <TNewProp> > newProp, Func <TDb, List <TDbProp> > dbValue, Action <TDbProp, TDb> setParent, DiffDsl <TNewProp, TDbProp, TChildKey, TUserId> diffDsl) where TDbProp : AbstractDatabaseRecord <TChildKey, TNewProp>, new() { this.manyToManyNodes.Add( new ManyToManyNode <TNewProp, TDbProp, TChildKey>( newPropKey, newProp, dbValue, setParent, diffDsl)); return(this); }