Exemplo n.º 1
0
        public DelphiCategory buildObject(SQLiteDataReader res)
        {
            DelphiCategory categ = new DelphiCategory();

            categ.CodCateg = res.GetInt16(res.GetOrdinal("codCateg"));
            categ.DesCateg = (string)res["desCateg"];
            categ.CorCateg = (string)res["corCateg"];
            categ.EdtCateg = (res["edtCateg"] == DBNull.Value ? 0 : res.GetInt16(res.GetOrdinal("edtCateg")));
            categ.FntCateg = (res["fntCateg"] == DBNull.Value ? null : (string)res["fntCateg"]);
            categ.HidCateg = (res["hidCateg"] == DBNull.Value ? 0 : res.GetInt16(res.GetOrdinal("hidCateg")));
            categ.SelCateg = res.GetInt16(res.GetOrdinal("selCateg"));

            return(categ);
        }
Exemplo n.º 2
0
 public void insert(DelphiCategory category)
 {
     throw new NotImplementedException();
 }