示例#1
0
 public Permission(PermissionData data)
     : base(data.DateCreated, data.DateUpdated, data.DateEnabled, data.DateDeleted)
 {
     PermissionId = new PermissionId(data.Id);
     AppId        = new AppId(data.AppId);
     Name         = data.Name;
     Description  = data.Description;
 }
示例#2
0
 public Permission(PermissionId permissionId, AppId appId, string name, string description,
                   DateTime dateCreated, DateTime dateUpdated, DateTime dateEnabled, DateTime dateDeleted)
     : base(dateCreated, dateUpdated, dateEnabled, dateDeleted)
 {
     Apply(new PermissionCreated(permissionId, appId, name, description, dateCreated, dateUpdated, dateEnabled, dateDeleted));
 }
示例#3
0
 public Permission(PermissionId permissionId, AppId appId, string name, string description)
     : this(permissionId, appId, name, description,
            DateTime.UtcNow, DateTime.UtcNow, DateTime.MaxValue, DateTime.MaxValue)
 {
 }