static void Main(string[] args) { PumpEntities _Entities = new PumpEntities(); Console.WriteLine("How many record want to insert?"); int number = Convert.ToInt32(Console.Read()); int i = 0; while (i < number) { var Id = Guid.NewGuid(); _Entities.Pump_Tb.Add(new Pump_Tb() { BrokerId = Id.ToString() }); _Entities.SaveChanges(); _Entities.EnquePending(DateTime.UtcNow, Id); i++; } }
public FirstService() { InitializeComponent(); _Entities = new PumpEntities(); }