mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-19 23:28:15 +08:00
14 lines
337 B
C#
14 lines
337 B
C#
#if ENTITY_FRAMEWORK
|
|
using System.Data.Common;
|
|
using System.Data.Entity;
|
|
|
|
namespace Dapper.Tests.EntityFramework
|
|
{
|
|
public class EFContext : DbContext
|
|
{
|
|
public EFContext(DbConnection connection, bool owned = false) : base(connection, owned) { }
|
|
public DbSet<Post> Posts { get;set; }
|
|
}
|
|
}
|
|
#endif
|