This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Example; | |
using Microsoft.EntityFrameworkCore; | |
var repo = new ThingRepo(); | |
repo.Init(); | |
var cyanShapes = repo.GetThings( | |
q => q.Where( | |
q => q.Name.Contains(nameof(ConsoleColor.Cyan))) | |
.OrderByDescending(s => s.Size)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq.Expressions; | |
namespace expressioncompare | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var left = Expression.Parameter(typeof(int), "left"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Extensions.DependencyInjection; | |
using System; | |
using System.Threading.Tasks; | |
namespace EFCoreContributors | |
{ | |
public class Program | |
{ | |
private const string PAT = "xyz"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace linqexample | |
{ | |
public class Thing | |
{ | |
private static int NextInt = 1; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override async Task<AddressBookList> GetAddressBookAsync(Empty request, | |
ServerCallContext context) | |
{ | |
var objPersons = new AddressBookList(); | |
var peopleWithPhoneNumbers = await _dataContext.People | |
.Include(p => p.Phones) | |
.AsNoTracking() | |
.ToListAsync(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using BlazorCosmosWasm.Shared; | |
using Microsoft.EntityFrameworkCore; | |
using System; | |
using System.Net.Http; | |
using System.Net.Http.Json; | |
using System.Threading.Tasks; | |
namespace BlazorCosmosWasm.Client.Data | |
{ | |
public class BlogClient : IBlogClient |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using BlazorCosmosWasm.Server.Controllers; | |
using BlazorCosmosWasm.Server.Models; | |
using BlazorCosmosWasm.Shared; | |
using IdentityServer4.EntityFramework.Options; | |
using Microsoft.Azure.Cosmos; | |
using Microsoft.EntityFrameworkCore; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.Options; | |
using System.Diagnostics; | |
using System.Linq; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Threading.Tasks; | |
using IConfiguration = Microsoft.Extensions.Configuration.IConfiguration; | |
using Microsoft.AspNetCore.Authorization; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.Azure.Cosmos; | |
using BlazorCosmosWasm.Shared; | |
using Microsoft.AspNetCore.Identity; | |
using BlazorCosmosWasm.Server.Models; | |
namespace BlazorCosmosWasm.Server.Controllers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq; | |
using System.Security.Claims; | |
using System.Threading.Tasks; | |
using IdentityServer4.Extensions; | |
using Microsoft.AspNetCore.Identity; | |
using BlazorCosmosWasm.Server.Models; | |
using Microsoft.Azure.Cosmos; | |
using Microsoft.Extensions.Configuration; | |
namespace BlazorCosmosWasm.Server.Controllers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(module | |
(type $t0 (func (param i32 i32 i32 i32) (result i32))) | |
(type $t1 (func)) | |
(import "wasi_unstable" "fd_write" (func $fd_write (type $t0))) | |
(func $main (type $t1) | |
i32.const 0 | |
i32.const 8 | |
i32.store | |
i32.const 4 | |
i32.const 22 |
NewerOlder