Beispiel #1
0
        /// <summary>
        /// Create a new DomainCultureMapping object.
        /// </summary>
        /// <param name="domainCultureMappingID">Initial value of the DomainCultureMappingID property.</param>
        public static DomainCultureMapping CreateDomainCultureMapping(global::System.Int32 domainCultureMappingID)
        {
            DomainCultureMapping domainCultureMapping = new DomainCultureMapping();

            domainCultureMapping.DomainCultureMappingID = domainCultureMappingID;
            return(domainCultureMapping);
        }
 public void DeleteDomainCultureMapping(DomainCultureMapping domainCultureMapping)
 {
     if ((domainCultureMapping.EntityState == EntityState.Detached))
     {
         this.ObjectContext.DomainCultureMappings.Attach(domainCultureMapping);
     }
     this.ObjectContext.DomainCultureMappings.DeleteObject(domainCultureMapping);
 }
 public void InsertDomainCultureMapping(DomainCultureMapping domainCultureMapping)
 {
     if ((domainCultureMapping.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(domainCultureMapping, EntityState.Added);
     }
     else
     {
         this.ObjectContext.DomainCultureMappings.AddObject(domainCultureMapping);
     }
 }
 public void UpdateDomainCultureMapping(DomainCultureMapping currentDomainCultureMapping)
 {
     this.ObjectContext.DomainCultureMappings.AttachAsModified(currentDomainCultureMapping, this.ChangeSet.GetOriginal(currentDomainCultureMapping));
 }
Beispiel #5
0
 /// <summary>
 /// Deprecated Method for adding a new object to the DomainCultureMappings EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDomainCultureMappings(DomainCultureMapping domainCultureMapping)
 {
     base.AddObject("DomainCultureMappings", domainCultureMapping);
 }