Adding properties dynamically to a class

后端 未结 6 1947
天命终不由人
天命终不由人 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条回答
  •  误落风尘
    2020-12-03 18:10

    If new columns are added to the databases you need to alter your code to specify how new columns should be used.

    If you need just to show content of the table despite of the field in the table, then you could use DataTable class.

提交回复
热议问题