public DataTable Load_TableDetails(string ObjectName, Keys Keys, string Condition, List<Do_Constants.Str_ForeignKeyRelation> ForeignKeys) { Connection_Wcf Cn = null; if (this.mConnection == null) { Cn = new Connection_Wcf(); Cn.Connect(); } else { Cn = this.mConnection; } Do_Constants.Str_Request_Load Rl = new Do_Constants.Str_Request_Load(); Rl.ObjectName = ObjectName; Rl.ForeignKeys = ForeignKeys; Rl.Condition = Condition; Rl.Key = Keys; Rl.ConnectionString = Cn.pConnectionString; Do_Constants.Str_Request_Session Rs = new Do_Constants.Str_Request_Session(); Rs.SessionID = ClsDataAccess_Wcf_Session.Instance.pSessionID; Client_WcfService Client = Client_WcfService.CreateObject(); String ResponseData = Client.Load_TableDetails(Rs, Rl); SimpleDataTable Sdt = SimpleDataTable.Deserialize(ResponseData); return Sdt.ToDataTable(); }
public DataRow Load(string ObjectName, List<string> List_Key, Keys Keys) { Connection_Wcf Cn = this.GetConnection(); Do_Constants.Str_Request_Load Rl = new Do_Constants.Str_Request_Load(); Rl.ObjectName = ObjectName; Rl.ObjectKeys = List_Key; Rl.Key = Keys; Rl.ConnectionString = Cn.pConnectionString; Do_Constants.Str_Request_Session Rs = new Do_Constants.Str_Request_Session(); Rs.SessionID = ClsDataAccess_Wcf_Session.Instance.pSessionID; Client_WcfService Client = Client_WcfService.CreateObject(); String ResponseData = Client.Load(Rs, Rl); SimpleDataRow Sdr = SimpleDataRow.Deserialize(ResponseData); return Sdr.ToDataRow(); }