Esempio n. 1
0
        /// <summary>
        /// Create a new ConversationCulture object.
        /// </summary>
        /// <param name="conversationCultureID">Initial value of the ConversationCultureID property.</param>
        public static ConversationCulture CreateConversationCulture(global::System.Guid conversationCultureID)
        {
            ConversationCulture conversationCulture = new ConversationCulture();

            conversationCulture.ConversationCultureID = conversationCultureID;
            return(conversationCulture);
        }
 public void DeleteConversationCulture(ConversationCulture conversationCulture)
 {
     if ((conversationCulture.EntityState == EntityState.Detached))
     {
         this.ObjectContext.ConversationCultures.Attach(conversationCulture);
     }
     this.ObjectContext.ConversationCultures.DeleteObject(conversationCulture);
 }
 public void InsertConversationCulture(ConversationCulture conversationCulture)
 {
     if ((conversationCulture.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(conversationCulture, EntityState.Added);
     }
     else
     {
         this.ObjectContext.ConversationCultures.AddObject(conversationCulture);
     }
 }
 public void UpdateConversationCulture(ConversationCulture currentConversationCulture)
 {
     this.ObjectContext.ConversationCultures.AttachAsModified(currentConversationCulture, this.ChangeSet.GetOriginal(currentConversationCulture));
 }
Esempio n. 5
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ConversationCultures EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToConversationCultures(ConversationCulture conversationCulture)
 {
     base.AddObject("ConversationCultures", conversationCulture);
 }