Install-Package IEntityRepository
or visit nuget for other version
EntityDataAccess repo = new EntityDataAccess(YouConnectionString);repo.CommandType = EntityDataAccess.ICommandType.Text; repo.CommandText = @"select * from Person"; var data = await repo.FirstOrDefaultAsync<Person>();