Beispiel #1
0
        public void Edit(Movie user)
        {
            //  string str = "update T_User set [Password]='" + user.LoginPassWord + "',[Jifen]="+user.Jifen+" where [QQ]='"+user.QQ+"'";

              //  _DBbase.ExecuteCommand(str);
        }
Beispiel #2
0
        private Movie GetEntity(DataRow dr)
        {
            Movie user = new Movie();
             //   user.Id = Convert.ToInt32(dr["Id"]);
            user.Id   =(int) dr["Id"];
            user.Name = dr["Name"].ToString();
            user.URL = dr["URL"].ToString();
            user.PlayDay = (DateTime)dr["PlayDay"];
            user.CreatedAt =(DateTime )dr["CreatedAt"];

            return user;
        }