Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var type1 = _dbContext.Model.FindEntityType("Chadwick.Database.Entities.Appearances");
- var type = _dbContext.Appearances.GetType();
- var context = _dbContext.Set(typeof(Appearance)); // this works
- var shit = await context.FromSql("SELECT TOP 100 * FROM Appearances").ToListAsync();
- // var data = await _dbContext.Appearances.Select(a => new {a.PlayerId}).Take(100).ToListAsync();
- return new OkObjectResult(shit);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement