add inital idea, not working! entityframeworkgit add ./git add ./ ahaaaaaha

This commit is contained in:
2022-04-27 11:44:49 +02:00
parent b448dbf23a
commit 37474430c6
7 changed files with 216 additions and 64 deletions

27
Database.cs Normal file
View 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)
{
}
}
}