우리는 여전히 DataSets, DataViews 및 DataTables를 사용하는 레거시 모듈이있는 mish-mash 응용 프로그램을 가지고 있지만이 모듈의 DB를 제외하고 대부분 ORMed 된 데이터베이스가 있습니다. 누군가가 우리가 시간이 응용 프로그램과 데이터 집합에서 그 자유의 다른 레이어에 작업을 얻을 것이다 때 알고 내가 그나마개체 DataView 또는 DataSet 또는 DataTable 및 개체로 돌아 가기
/* generates a dataset called CustomerDS with
DataTable called Customer uses property names as DataColumn name */
var dataset =_customer.AsDataSet();
/* Converts the dataset to required object or
throws exception if its cant convert*/
var customerEntity = _dataset.ToObject<Customer>();
같은 건물 확장에 대해 이동하는 방법에 관해서는 나에게 포인터를 줄 수 있는지 궁금 해서요. 나는 미친 듯이 들릴지도 모르지만 그것의 단지 생각. 그 앱을 지원/버그 수정해야 할 때 나는 악몽을 꾼다.
같이 사용할 수 있습니다 , 아마도 뭔가 : http://stackoverflow.com/questions/564366/generic-list-to-datatable –
그리고 다른 d 개 방향 : http://stackoverflow.com/questions/545328/datatable-to-generic-list-memory-leak –