Gutti
Gutti
CC#
Created by Retro Afro on 4/30/2024 in #help
ASP.NET EF help
Like this?
89 replies
CC#
Created by Retro Afro on 4/30/2024 in #help
ASP.NET EF help
C#
using var logger = new LoggerConfiguration()
.WriteTo.Console()
.WriteTo.File("Logs/log.txt", rollingInterval: RollingInterval.Day)
.CreateLogger();

builder.Logging.ClearProviders();

builder.Logging.AddSerilog(logger);
C#
using var logger = new LoggerConfiguration()
.WriteTo.Console()
.WriteTo.File("Logs/log.txt", rollingInterval: RollingInterval.Day)
.CreateLogger();

builder.Logging.ClearProviders();

builder.Logging.AddSerilog(logger);
89 replies
CC#
Created by Retro Afro on 4/30/2024 in #help
ASP.NET EF help
Sounds weird because i got some issues when is was trying to add new migration without a parameterless constructor else can u try showing me how u would do it?
89 replies
CC#
Created by Retro Afro on 4/30/2024 in #help
ASP.NET EF help
Like this my man
C#
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
{
}

public AppDbContext()
{
}
C#
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
{
}

public AppDbContext()
{
}
89 replies
CC#
Created by Retro Afro on 4/30/2024 in #help
ASP.NET EF help
If u use migrations
89 replies
CC#
Created by Retro Afro on 4/30/2024 in #help
ASP.NET EF help
He still needs to add this constructor
C#
public AppDbContext()
{
}
C#
public AppDbContext()
{
}
89 replies
CC#
Created by Retro Afro on 4/30/2024 in #help
ASP.NET EF help
I think u need Core, SqlServer, Tools for it
89 replies
CC#
Created by Retro Afro on 4/30/2024 in #help
ASP.NET EF help
No description
89 replies
CC#
Created by Retro Afro on 4/30/2024 in #help
ASP.NET EF help
C#
public class TheBigStoreContext : DbContext
{
public TheBigStoreContext(DbContextOptions options) : base(options)
{
}

public TheBigStoreContext()
{
}
C#
public class TheBigStoreContext : DbContext
{
public TheBigStoreContext(DbContextOptions options) : base(options)
{
}

public TheBigStoreContext()
{
}
89 replies