You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently im using the following syntax in CodeFirst but EF Core complains about AccountRoles not having a primary key (I assume this was due to the missing convertor)
Is there a guide on how to use SmartFlagEnum with EFCore?
public virtual ICollection Roles { get; internal set; } = new HashSet();
public sealed class AccountRoles : SmartFlagEnum {
public static readonly AccountRoles Primary = new AccountRoles("Primary", 1 << 0);
public static readonly AccountRoles Secondary = new AccountRoles("Secondary", 1 << 1);
}
The text was updated successfully, but these errors were encountered:
Currently im using the following syntax in CodeFirst but EF Core complains about AccountRoles not having a primary key (I assume this was due to the missing convertor)
Is there a guide on how to use SmartFlagEnum with EFCore?
public virtual ICollection Roles { get; internal set; } = new HashSet();
public sealed class AccountRoles : SmartFlagEnum {
public static readonly AccountRoles Primary = new AccountRoles("Primary", 1 << 0);
public static readonly AccountRoles Secondary = new AccountRoles("Secondary", 1 << 1);
}
The text was updated successfully, but these errors were encountered: