| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using DevExpress.Xpo;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Ips.Sps
- {
- public static class InitDataHelper
- {
- private readonly static string[][] _sigSourceList = new string[][]
- {
- new []{ "UFO8","25258", "109.40.47.216:16016","1" }
- };
- public static void Seed(UnitOfWork uow)
- {
- //int sigSourceCnt = uow.Query<SigSource>().Count();
- //if (sigSourceCnt > 0)
- // return;
- //CreateSigSourceList(uow);
- //uow.CommitChanges();
- //Tst tst = new Tsts.Tst(uow);
- //tst.SigTime = DateTime.Now;
- //uow.CommitChanges();
- }
- private static void CreateSigSourceList(UnitOfWork uow)
- {
- //foreach (string[] item in _sigSourceList)
- //{
- // SigSource sigSource = new SigSource(uow);
- // int i = 0;
- // sigSource.Name = item[i++];
- // sigSource.Code = item[i++];
- // sigSource.Addr = item[i++];
- // sigSource.Ch = int.Parse(item[i++]);
- //}
- }
- }
- }
|