示例#1
0
        public async Task Insert(Graph graph, string text)
        {
            Guid blobId = await datastoreService.InsertBlob(text);

            graph.BlobId = blobId;

            await context.AddAsync(graph);

            await context.SaveChangesAsync();
        }
示例#2
0
        public async Task Insert(Models.Program program, string text)
        {
            Guid blobId = await datastoreService.InsertBlob(text);

            program.BlobId = blobId;

            await context.AddAsync(program);

            await context.SaveChangesAsync();
        }