Exemple #1
0
        /// <summary>
        /// Create a new CultureFiveDimension object.
        /// </summary>
        /// <param name="cultureID">Initial value of the CultureID property.</param>
        public static CultureFiveDimension CreateCultureFiveDimension(global::System.Int32 cultureID)
        {
            CultureFiveDimension cultureFiveDimension = new CultureFiveDimension();

            cultureFiveDimension.CultureID = cultureID;
            return(cultureFiveDimension);
        }
 public void DeleteCultureFiveDimension(CultureFiveDimension cultureFiveDimension)
 {
     if ((cultureFiveDimension.EntityState == EntityState.Detached))
     {
         this.ObjectContext.CultureFiveDimensions.Attach(cultureFiveDimension);
     }
     this.ObjectContext.CultureFiveDimensions.DeleteObject(cultureFiveDimension);
 }
 public void InsertCultureFiveDimension(CultureFiveDimension cultureFiveDimension)
 {
     if ((cultureFiveDimension.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(cultureFiveDimension, EntityState.Added);
     }
     else
     {
         this.ObjectContext.CultureFiveDimensions.AddObject(cultureFiveDimension);
     }
 }
 public void UpdateCultureFiveDimension(CultureFiveDimension currentCultureFiveDimension)
 {
     this.ObjectContext.CultureFiveDimensions.AttachAsModified(currentCultureFiveDimension, this.ChangeSet.GetOriginal(currentCultureFiveDimension));
 }
Exemple #5
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CultureFiveDimensions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCultureFiveDimensions(CultureFiveDimension cultureFiveDimension)
 {
     base.AddObject("CultureFiveDimensions", cultureFiveDimension);
 }