コード例 #1
0
        protected override void MarkIdsTemporary(StoreGeneratedFixupContext context, object game, object level, object item)
        {
            var entry = context.Entry(game);

            entry.Property("Id").IsTemporary = true;

            entry = context.Entry(item);
            entry.Property("Id").IsTemporary = true;
        }
コード例 #2
0
        protected override void MarkIdsTemporary(StoreGeneratedFixupContext context, object dependent, object principal)
        {
            var entry = context.Entry(dependent);

            entry.Property("Id1").IsTemporary = true;
            entry.Property("Id2").IsTemporary = true;

            entry = context.Entry(principal);
            entry.Property("Id1").IsTemporary = true;
            entry.Property("Id2").IsTemporary = true;
        }