Пример #1
0
        public void InsertContinent(Continent continent)
        {
            string sql = "insert into Continent values (@name)";

            db.Execute(sql, new { continent.Name });
        }
Пример #2
0
        public void DeleteContinent(Continent continent)
        {
            string sql = "Delete Continent where id = @id";

            db.Execute(sql, new { continent.ID });
        }
Пример #3
0
        public void UpdateContinent(Continent continent)
        {
            string sql = "update Continent set name = @name where id = @id";

            db.Execute(sql, new { continent.Name, continent.ID });
        }