예제 #1
0
        public async Task Can_attach_graph_using_custom_delegate_async()
        {
            var attacher = new MyAttacher(updateExistingEntities: true);

            await CustomAttacherTestAsync(
                async (category, changeTracker) => await changeTracker.AttachGraphAsync(category, attacher.HandleEntityAsync),
                expectModified : true);
        }
예제 #2
0
        public async Task Can_attach_graph_using_custom_delegate()
        {
            var attacher = new MyAttacher(updateExistingEntities: false);

            await CustomAttacherTestAsync((category, changeTracker) =>
            {
                changeTracker.AttachGraph(category, attacher.HandleEntity);

                return(Task.FromResult(0));
            });
        }