public IEnumerable <DataForGrid> selectAll(DataForGrid data) { using (var teste = new DataContext()) { var getData = teste.DataForGrids.ToList().Where(x => x.email == data.email); return(getData); } }
public static void Initialize(DataContext _context) { _context.Database.EnsureCreated(); var data = new DataForGrid[] { new DataForGrid { Id = 1, Name = "Teste1", AccountNumber = 123456, AccountBalance = 150.10, email = "*****@*****.**" } }; foreach (DataForGrid p in data) { _context.DataForGrids.Add(p); } _context.SaveChanges(); /*TODO ALIMENTAR TABLES*/ }
public bool Update(DataForGrid dataItem) { throw new NotImplementedException(); }
public void Save(DataForGrid dataItem) { throw new NotImplementedException(); }