Ignore read-only class properties when using DataContext.ExecuteQuery

后端 未结 2 1701
忘了有多久
忘了有多久 2021-02-15 02:46

How do I tell a LINQ data context to ignore either specific properties, or all readonly properties, when binding a result set to an object?

I am working with some T-SQL

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-15 03:29

    public bool IsPaidInFull
    {
        get { return NetTotal <= 0m; }
        private set { ;}
    }
    

提交回复
热议问题