Dixin / EntityFramework.Functions

EntityFramework.Functions library implements Entity Framework code first support for stored procedures (with single result type, multiple result types, output parameter), table-valued functions (returning entity type, complex type), scalar-valued functions (composable, non-composable), aggregate functions, built-in functions, niladic functions, and model defined functions.
https://weblogs.asp.net/Dixin/EntityFramework.Functions
MIT License
79 stars 27 forks source link

Column mapping dont work in EntityFramework.Functions.TableValuedFunction #30

Open Lukzjee opened 6 years ago

Lukzjee commented 6 years ago

Cannot use Column mapping in ComplexType Dto's example:

[ComplexType]
    public class PolicyPreviewForListDto
    {
[Column("Client_FirstName")]
        public string ClientFirstName { get; set; }
}

But still recieve ----> System.Data.SqlClient.SqlException : Invalid column name 'ClientFirstName'.

Configurate in builder dont work aswell example: modelBuilder.ComplexType<PolicyPreviewForListDto>().Property(prop => prop.ClientFirstName).HasColumnName("Client_FirstName");

What's wrong there ?