コード例 #1
0
        ///<summary>
        ///根据ID得到相应的实体类对象
        ///生成时间:2010-10-10 21:28:26
        ///</summary>
        public Server GetServerByPK(object id)
        {
            MySqlParameter[] param = new MySqlParameter[] {
                new MySqlParameter("?ID", id)
            };

            return(MySqlModelHelper1 <Server> .GetSingleObjectBySql(SQL_SELECTBYPK, param));
        }
コード例 #2
0
        ///<summary>
        ///根据ID得到相应的实体类对象
        ///生成时间:2010-10-10 20:16:28
        ///</summary>
        public Domain GetDomainByPK(object id)
        {
            MySqlParameter[] param = new MySqlParameter[] {
                new MySqlParameter("?ID", id)
            };

            return(MySqlModelHelper1 <Domain> .GetSingleObjectBySql(SQL_SELECTBYPK, param));
        }
コード例 #3
0
 ///<summary>
 ///获得所有数据,返回泛型集合
 ///生成时间:2010-10-10 21:28:26
 ///</summary>
 public IList <Server> GetMutilILServer()
 {
     return(MySqlModelHelper1 <Server> .GetObjectsBySql(SQL_SELECTALL, null));
 }
コード例 #4
0
 ///<summary>
 ///获得所有数据,返回泛型集合
 ///生成时间:2010-10-10 20:16:28
 ///</summary>
 public IList <Domain> GetMutilILDomain()
 {
     return(MySqlModelHelper1 <Domain> .GetObjectsBySql(SQL_SELECTALL, null));
 }