This commit is contained in:
2020-10-13 20:56:53 -04:00
commit 3c6e421dbf
12 changed files with 559 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.9">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.9" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\COA.EnterpriseServices.DataAccess\COA.EnterpriseServices.DataAccess.csproj" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace COA.EnterpriseServices.DataAccess.EntityFramework.Entities
{
public class Creditor : IRecord
{
public int Id { get; set; }
}
}

View File

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;
namespace COA.EnterpriseServices.DataAccess.EntityFramework
{
public class EntityDataAccess<T> : IDataAccess<T> where T : IRecord
{
public bool Add(T item)
{
throw new NotImplementedException();
}
public bool Update(T item)
{
throw new NotImplementedException();
}
public ICollection<T> Get(int id)
{
throw new NotImplementedException();
}
public ICollection<T> Get(Expression<Func<T, bool>> query)
{
throw new NotImplementedException();
}
}
}

View File

@ -0,0 +1,13 @@
using COA.EnterpriseServices.DataAccess.EntityFramework.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
namespace COA.EnterpriseServices.DataAccess.EntityFramework
{
public class QuickBaseContext : DbContext
{
public DbSet<Creditor> Creditors { get; set; }
}
}