atakanozbancom/Models/classes/Context.cs
Atakan Doğan Özban 202dc16a52 Add project files.
2026-02-13 23:40:52 +01:00

19 lines
538 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Data.Entity;
namespace atakanozbancom.Models.classes
{
public class Context : DbContext
{
public Context() : base("Context")
{
// Fixes MODEL–DB uncompaciable:
Database.SetInitializer<Context>(null);
}
public DbSet<admin> admins { get; set; }
public DbSet<myprojects> MyProjects { get; set; }
public DbSet<myprojectstranslation> myprojectstranslations { get; set; }
public DbSet<projectmedia> projectmedias { get; set; }
}
}