Beispiel #1
0
        public bool ExistsUserName(string userName)
        {
            string sql = "SELECT COUNT(0) FROM T_Employee WHERE Login=@UserName";

            using (var dbOperator = new DbOperator(Provider, ConnectionString)) {
                dbOperator.AddParameter("UserName", userName);
                var result = (int)dbOperator.ExecuteScalar(sql);
                return(result >= 1);
            }
        }