Skip to content

Request: Support the Immutable Entities #465

@mikependon

Description

@mikependon

Currently, RepoDb does not support an immutable classes when fetching the data from the database. This is true to all fetch operations like Query, QueryAll, BatchQuery and/or even in the ExecuteQuery method.

See the sample code snippets below:

public class Customer
{
     public Customer(int id, string name, ...)
     {
          Id = id;
          Name = name;
          ...
     }

     public int Id { get; set; }

     public string Name { get; set; }
}

Note: In F#, by default, the classes are immutable and that the developers need to explicitly specify the CLIMutableAttribute to make it work.

More information will soon to be placed here.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfixedThe bug, issue, incident has been fixed.requestA request from the community.todoThings to be done in the future

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions