Skip to content

Commit

Permalink
Remove LangId from MetaBase
Browse files Browse the repository at this point in the history
  • Loading branch information
imaun committed Dec 10, 2022
1 parent f5481c7 commit 2c8f2bf
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/Models/MetaBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,40 @@ protected MetaBase()
}

protected MetaBase(
TOwnerId ownerId, string title, string metaKey, string metaValue,
string metaType, Guid? langId, string langCode = null,
string description = null, string category = null,
TOwnerId ownerId, string metaKey, string? title,
string? metaValue, string? metaType, Guid? langId,
string? description = null, string? category = null,
int orderNum = 1)
{
OwnerId = ownerId;
Title = title;
MetaKey = metaKey;
Title = title;
MetaValue = metaValue;
MetaType = metaType;
Description = description;
Category = category;
OrderNum = orderNum;
Status = EntityStatus.Enabled;
LangId = langId;
LangCode = langCode;
}

public TOwnerId OwnerId { get; protected set; }
public string Title { get; protected set; }
public string? Title { get; protected set; }
public string MetaKey { get; protected set; }
public string MetaValue { get; protected set; }
public string MetaType { get; protected set; }
public string? MetaValue { get; protected set; }
public string? MetaType { get; protected set; }
public EntityStatus Status { get; protected set; }
public Guid? LangId { get; protected set; }
public string LangCode { get; protected set; }
public string Description { get; protected set; }
public string Category { get; protected set; }
public string? Description { get; protected set; }
public string? Category { get; protected set; }
public int OrderNum { get; protected set; }

protected override IEnumerable<object> GetEqualityComponents()
{
yield return OwnerId!;
yield return MetaKey;
yield return MetaValue;
yield return MetaType;
yield return OwnerId;
yield return MetaValue!;
yield return MetaType!;
yield return Status;
yield return Description;
yield return Category;
Expand Down

0 comments on commit 2c8f2bf

Please sign in to comment.