public void Add(StreamingEncoderType X) { List.Add(X); }
public StreamingEncoderType GetStreamingEncoderType(int ID) { try { StreamingEncoderType X = new StreamingEncoderType(); string sSQL = "Select * FROM tblStreamingEncoderType WHERE ID = " + ID; DataTable DT = GetDataTable(sSQL); if(DT.Rows.Count > 0) { DataRow r = DT.Rows[0]; X.mvarID = Convert.ToInt32((object)r[0]); X.mvarDescription = Convert.ToString((object)r[1]); X.mvarConstant1 = Convert.ToString((object)r[2]); X.mvarConstant2 = Convert.ToString((object)r[3]); X.mvarConstant3 = Convert.ToString((object)r[4]); X.mvarConstant4 = Convert.ToString((object)r[5]); X.mvarMoniker = Convert.ToString((object)r[6]); X.mvarFormat = Convert.ToString((object)r[7]); } else X = null; DT.Dispose(); return X; } catch(Exception Err) { throw new ApplicationException(Err.Message); } }