static void Main(string[] args) { AppDomain.CurrentDomain.SetData("DataDirectory", System.IO.Directory.GetParent(System.IO.Directory.GetCurrentDirectory()).Parent.FullName); //AppDomain.CurrentDomain.SetData("DataDirectory", System.IO.Directory.GetParent(System.IO.Directory.GetParent(System.IO.Directory.GetCurrentDirectory()))); ORM.EntityModel em = new ORM.EntityModel("name=EntityModel"); ORM.Entities.User user = em.Set<User>().Add(new ORM.Entities.User { Name = "test", Password = "******", Email = "*****@*****.**", }); /* em.Lots.Add(new ORM.Entities.Lot { Name = "sdfasf", Category = new ORM.Entities.Category { Name = "New category"}, FinishDateTime = DateTime.Now, StartDateTime = DateTime.Now, Sold = false, StartPrice = 0, OwnerId = em.Users.First().Id, ModerationStatus = new ORM.Entities.ModerationStatus { Name = "First status" } }); */ int a = 1; a += a; }
public UserRoleRepository(EntityModel uow) { this._context = uow; }
public TagRepository(EntityModel context) { this._context = context; }
public ArticleRepository(EntityModel context) { this._context = context; }
public UnitOfWork(EntityModel context) { this.Context = context; }