コード例 #1
0
        /// <summary>
        /// Adds the specified resolution.
        /// </summary>
        /// <param name="resolution">The resolution.</param>
        /// <returns></returns>
        public tbl_Resolutions Add(tbl_Resolutions resolution)
        {
            resolution.ID = Guid.NewGuid();
            _dataContext.tbl_Resolutions.AddObject(resolution);
            _dataContext.SaveChanges();

            return(resolution);
        }
コード例 #2
0
 /// <summary>
 /// Updates the specified resolution.
 /// </summary>
 /// <param name="resolution">The resolution.</param>
 public void Update(tbl_Resolutions resolution)
 {
     _dataContext.SaveChanges();
 }