摘要:
尽量使用EF的异步调用 await ctx.Students.ToListAsync() await foreach (var s in ctx.Students.AsAsyncEnumerable()) FormattableString使用 int a = 111; string world = 阅读全文
摘要:
class Student { public int Id { get; set; } public string Name { get; set; } public List<Teacher> Teachers { get; } = new List<Teacher>(); } class Stu 阅读全文
摘要:
class Delivery { public int Id { get; set; } public string CompanyName { get; set; } public string Number { get; set; } public Order Order { get; set; 阅读全文
摘要:
class OrgUnit { public int Id { get; set; } public string Name { get; set; } public OrgUnit Parent { get; set; } public List<OrgUnit> Children { get; 阅读全文
摘要:
某些情况下,出于性能考虑,我们需要外键的id值,但不想使用join子句把引用类型都读进来。 class Book { public int Id { get; set; } public string Name { get; set; } public string Author { get; se 阅读全文
摘要:
class Person { public int Id { get; set; } public string Name { get; set; } public int Age { get; set; } public DateTime Birthday { get; set; } public 阅读全文