I have a C# WCF project that have around 35 services. Each service returns and receives a DataSet
.
Example:
public DataSet GetEmployeeInfo(string uid)
{
DataSet ds = null;
SqlParameter paramUID = new SqlParameter("@uid", SqlDbType.UniqueIdentifier);
paramUID.Value = new Guid(uid);
... some code here
return ds;
}
public bool UpdateEmployeeInfo(DataSet ds, int userid)
{
bool returnVal = true;
Guid facilityUID = Guid.Empty;
SqlConnection conn = new SqlConnection(Common.GetConnectionString());
conn.Open();
SqlTransaction trans = conn.BeginTransaction(IsolationLevel.ReadUncommitted, "UpdateEmployeeInfo");
try
{
... some code
}
}
I would like to know if there is a way to keep the same DataSet
object and migrate to gRPC
service.
I don't see me changing all my WCF
service to change DataSet
to a POCO class because that would be a huge change and would take more than 6 months of work.
Any way to do this or a workaround?