コード例 #1
0
 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;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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);
 }