コード例 #1
0
ファイル: Document.cs プロジェクト: carvalho2209/orm-privado
        public bool GetBySerial(Int32 serial, eDocumentModelID documentModel)
        {
            var tableQuery = new TableQuery(this);

            tableQuery.Where.Add(new QueryParam(m_Serial, serial));
            tableQuery.Where.Add(new QueryParam(m_Model, documentModel.ToInt32()));

            var myData = GetData(tableQuery);

            if (myData.Rows.Count <= 0)
            {
                return(false);
            }

            FillFields(myData.Rows[0]);

            return(true);
        }
コード例 #2
0
 public static int ToInt32(this eDocumentModelID pObjectType)
 {
     return(Convert.ToInt32(pObjectType));
 }
コード例 #3
0
 public static string GetName(this eDocumentModelID pObjectType)
 {
     return(pObjectType.ToString());
 }