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
These models were related types are all stored in one database table using a discrimator column would traditionally be modelled in C# using inheritance
They should be modelled as Discrimated Unions in F#
Example:
C#
public abstract class Person {}
public class Employee : Person {}
public class Manager : Person {}
F#
type Person =
| Employee of Employee
| Manager of Manager
The text was updated successfully, but these errors were encountered:
These models were related types are all stored in one database table using a discrimator column would traditionally be modelled in C# using inheritance
They should be modelled as Discrimated Unions in F#
Example:
C#
F#
The text was updated successfully, but these errors were encountered: