add inital idea, not working! entityframeworkgit add ./git add ./ ahaaaaaha
This commit is contained in:
27
Database.cs
Normal file
27
Database.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Data.Common;
|
||||
using System.Data.Entity;
|
||||
|
||||
namespace it_projekt
|
||||
{
|
||||
class Database : DbContext
|
||||
{
|
||||
public DbSet<Person> persons { get; set; }
|
||||
|
||||
public Database()
|
||||
: base()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
public Database(DbConnection existingConnection, bool contextOwnsConnection)
|
||||
: base(existingConnection, contextOwnsConnection)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user