Skip to content

Commit

Permalink
Add: required id
Browse files Browse the repository at this point in the history
  • Loading branch information
vulcandragi committed Nov 21, 2023
1 parent 4db7a2e commit f190ec5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TakasakiStudio.Lina.Database/Models/BaseEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public abstract class BaseEntity<TPkType>
/// <summary>
/// Entity id
/// </summary>
public TPkType Id { get; set; } = default!;
public required TPkType Id { get; set; } = default!;

/// <summary>
/// Create a clone of value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace TakasakiStudio.Lina.Database.Models;
/// <typeparam name="TModel">Entity model</typeparam>
/// <typeparam name="TValidationClass">Entity model validation</typeparam>
/// <typeparam name="TPkKey">Entity id type</typeparam>
public abstract class BaseValidateBaseEntity<TModel, TValidationClass, TPkKey> : BaseEntity<TPkKey>,
public abstract class BaseEntityValidate<TModel, TValidationClass, TPkKey> : BaseEntity<TPkKey>,
IValidate,
IBaseValidate<TModel, TValidationClass>
where TValidationClass: IValidator<TModel>
Expand Down

0 comments on commit f190ec5

Please sign in to comment.