コード例 #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);
        }
コード例 #2
0
 public void DeleteDomainCultureMapping(DomainCultureMapping domainCultureMapping)
 {
     if ((domainCultureMapping.EntityState == EntityState.Detached))
     {
         this.ObjectContext.DomainCultureMappings.Attach(domainCultureMapping);
     }
     this.ObjectContext.DomainCultureMappings.DeleteObject(domainCultureMapping);
 }
コード例 #3
0
 public void InsertDomainCultureMapping(DomainCultureMapping domainCultureMapping)
 {
     if ((domainCultureMapping.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(domainCultureMapping, EntityState.Added);
     }
     else
     {
         this.ObjectContext.DomainCultureMappings.AddObject(domainCultureMapping);
     }
 }
コード例 #4
0
 public void UpdateDomainCultureMapping(DomainCultureMapping currentDomainCultureMapping)
 {
     this.ObjectContext.DomainCultureMappings.AttachAsModified(currentDomainCultureMapping, this.ChangeSet.GetOriginal(currentDomainCultureMapping));
 }
コード例 #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);
 }