コード例 #1
0
            public IUpdateManyToOne <TNew, TDb, TKey, TUserId> Build(IdPointer id)
            {
                var updateManyToOne = new UpdateManyToOne <TNew, TDb, TNewProp, TDbProp, TKey, TChildKey, TUserId>(
                    id.Id++,
                    DiffDsl.immutable,
                    NewProp,
                    dbValue,
                    DiffDsl.updateValues,
                    DiffDsl.diffRepository);

                DiffDsl.Children(
                    id,
                    updateManyToOne);
                return(updateManyToOne);
            }
コード例 #2
0
            public IUpdateManyToMany <TNew, TDb, TKey, TUserId> Build(IdPointer id)
            {
                var updateManyToMany = new UpdateManyToMany <
                    TNew,
                    TDb,
                    TNewProp,
                    TDbProp,
                    TKey,
                    TChildKey,
                    TUserId>(
                    id.Id++,
                    DiffDsl.immutable,
                    this.NewPropKey,
                    this.NewProp,
                    this.DbValue,
                    this.DiffDsl.updateValues,
                    this.SetParent,
                    this.DiffDsl.diffRepository);

                DiffDsl.Children(
                    id,
                    updateManyToMany);
                return(updateManyToMany);
            }