コード例 #1
0
        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++;
            }
        }
コード例 #2
0
 public FirstService()
 {
     InitializeComponent();
     _Entities = new PumpEntities();
 }