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.
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:
Note: In F#, by default, the classes are immutable and that the developers need to explicitly specify the
CLIMutableAttributeto make it work.More information will soon to be placed here.