Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

program.cs entity framework

// Add services to the container.
builder.Services.AddControllers();
builder.Services.AddDbContext<"YOUR_DBCONTEXT">(option =>
    option.UseSqlServer(builder.Configuration.GetConnectionString(CONNECTION_STRING)));

 
PREVIOUS NEXT
Tagged: #entity #framework
ADD COMMENT
Topic
Name
9+3 =