This file contains 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 Newtonsoft.Json.Linq; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace SemModAnabinParser |
This file contains 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
//You can either override OnConfiguring in DbContext: | |
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) | |
=> optionsBuilder | |
.UseLazyLoadingProxies() | |
.UseSqlServer(myConnectionString); | |
//...or if you are using ASP.NET and AddDbContext: | |
.AddDbContext<PizzaContext>( | |
b => b.UseLazyLoadingProxies() | |
.UseSqlServer(myConnectionString)); |
This file contains 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 class Pizza | |
{ | |
public int Id { get; set; } | |
public virtual ICollection<Topping> Toppings { get; set; } | |
} | |
public class Topping | |
{ | |
public string Name { get; set; } | |
public float Price { get; set; } |