Beispiel #1
0
        public int OrganizationCount(string name)
        {
            //List<int> ret = new List<int>();
            SqlCommand cmd = SqlQueryBuilder.CountOfOrganiztion(name, DBConnection);

            //SqlCommand cmd = SqlQueryBuilder.Select("ID", "Организации", "Название", name, DBConnection);
            try
            {
                return((int)cmd.ExecuteScalar());
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); return(0); }
        }