public bool Bind(SQLiteQuery qr, string strValue) { if (String.Compare(strValue, ":null", true) == 0) { qr.BindNull(); } else { switch (type) { case Type.Text: qr.Bind(strValue); break; case Type.Integer: qr.Bind(int.Parse(strValue)); break; default: return(false); } } return(true); }
public bool Bind( SQLiteQuery qr, string strValue ) { if(String.Compare(strValue,":null",true)==0) { qr.BindNull(); } else { switch(type) { case Type.Text: qr.Bind(strValue); break; case Type.Integer: qr.Bind(int.Parse(strValue)); break; default: return false; } } return true; }