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
I wanted to submit a feature request for strongly typed enumerations, such as SmartEnum from Ardalis.
SmartEnums, or enhanced enums, have several advantages and can be a good alternative to default enumerations within data controls such as DataGrid, SelectBoxes and so on.
SmartEnums can be integrated into EntityFramework Core with conversions
protectedoverridevoidOnModelCreating(ModelBuilderbuilder){base.OnModelCreating(builder);builder.Entity<Policy>().Property(p =>p.PolicyStatus).HasConversion(
p =>p.Value,
p =>PolicyStatus.FromValue(p));}
In the DevExpress Support Center, I have asked for help and Andrew did a great start on implementing this function
Hello,
I wanted to submit a feature request for strongly typed enumerations, such as SmartEnum from Ardalis.
SmartEnums, or enhanced enums, have several advantages and can be a good alternative to default enumerations within data controls such as DataGrid, SelectBoxes and so on.
SmartEnums can be integrated into EntityFramework Core with conversions
In the DevExpress Support Center, I have asked for help and Andrew did a great start on implementing this function
The problem is that it may cannot covers all possible scenarios.
The key solution would be a native integration in the DevExtreme.AspNet.Data library.
By the way, SmartEnums can also be integrated within DevExpress XPO using a custom ValueConverter
The text was updated successfully, but these errors were encountered: