Skip to content

Add support for many types per table relationships #21

@simon-reynolds

Description

@simon-reynolds

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions