Vote count:
0
I have a table in my database. I need to send this table from server to client via [OperationContract] interface. How do I suppose to do that? I've been told I need to use DataTable. So, I've done, but it didn't work:
DataTable dt = new DataTable("userTask"); /// my table
linqDataClassFromDBDataContext dataContext = new linqDataClassFromDBDataContext(); ///linq-diagram
DataColumn column = new DataColumn();
column = dataContext.userTasks.Select(u => u.from_person) as DataColumn; /// column is null
I need this table to be sent to client app. But I have no idea how to put my table to DataTable.
asked 3 mins ago
WCF putting table from database to DataTable
Aucun commentaire:
Enregistrer un commentaire