예제 #1
0
 public Tenant(TenantId tenantId, string name, bool active)
 {
     this.Id = tenantId.Id;
     this.Name = name;
     this.Active = active;
     this.Start = DateTime.Now;
 }
예제 #2
0
 public User(TenantId tenantId, string userName, string password, string email)
 {
     this.Id = new UserId().Id;
     this.TenantId = tenantId.Id;
     this.Username = userName;
     this.Password = password;
     this.EmailAddress = new EmailAddress(email);
 }
예제 #3
0
 public Tenant FindById(TenantId tenantId)
 {
     return this._dataContext.Tenants.Find(tenantId.Id);
 }