Adding properties dynamically to a class

后端 未结 6 1916
天命终不由人
天命终不由人 2020-12-03 17:14

In my class I have private variables and properties like this.

private string _itemCOde=string.Empty;
private string  _itemName=string.Empty;

public string          


        
6条回答
  •  -上瘾入骨i
    2020-12-03 18:11

    If you need to keep the class attributes in sync with the SQL table schema... What you need is LINQ to SQL

提交回复
热议问题