Skip to content

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

@Lukzjee

Description

@Lukzjee

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions