Exemple #1
0
        /// <summary>
        /// Creates the entity object.
        /// </summary>
        /// <param name="metaClassName">Name of the meta class.</param>
        /// <param name="primaryKeyId">The primary key id.</param>
        /// <returns></returns>
        protected override EntityObject CreateEntityObject(string metaClassName, PrimaryKeyId?primaryKeyId)
        {
            if (metaClassName == CustomizationItemArgumentEntity.ClassName)
            {
                CustomizationItemArgumentEntity retVal = new CustomizationItemArgumentEntity();
                retVal.PrimaryKeyId = primaryKeyId;
                return(retVal);
            }

            return(base.CreateEntityObject(metaClassName, primaryKeyId));
        }
        /// <summary>
        /// Creates the entity object.
        /// </summary>
        /// <param name="metaClassName">Name of the meta class.</param>
        /// <param name="primaryKeyId">The primary key id.</param>
        /// <returns></returns>
        protected override EntityObject CreateEntityObject(string metaClassName, PrimaryKeyId? primaryKeyId)
        {
            if (metaClassName == CustomizationItemArgumentEntity.ClassName)
            {
                CustomizationItemArgumentEntity retVal = new CustomizationItemArgumentEntity();
                retVal.PrimaryKeyId = primaryKeyId;
                return retVal;
            }

            return base.CreateEntityObject(metaClassName, primaryKeyId);
        }
Exemple #3
0
        /// <summary>
        /// Creates the navigation item argument.
        /// </summary>
        /// <param name="itemId">The item id.</param>
        /// <param name="name">The name.</param>
        /// <param name="value">The value.</param>
        /// <returns></returns>
        private static CustomizationItemArgumentEntity CreateCustomizationItemArgument(PrimaryKeyId itemId, string name, string value)
        {
            CustomizationItemArgumentEntity argument = BusinessManager.InitializeEntity <CustomizationItemArgumentEntity>(CustomizationItemArgumentEntity.ClassName);

            argument.ItemId = itemId;
            argument.Name   = name;
            argument.Value  = value;

            argument.PrimaryKeyId = BusinessManager.Create(argument);

            return(argument);
        }
Exemple #4
0
 /// <summary>
 /// Updates the customization item argument.
 /// </summary>
 /// <param name="argument">The argument.</param>
 /// <param name="value">The value.</param>
 private static void UpdateCustomizationItemArgument(CustomizationItemArgumentEntity argument, string value)
 {
     argument.Value = value;
     BusinessManager.Update(argument);
 }
Exemple #5
0
 /// <summary>
 /// Updates the customization item argument.
 /// </summary>
 /// <param name="argument">The argument.</param>
 /// <param name="value">The value.</param>
 private static void UpdateCustomizationItemArgument(CustomizationItemArgumentEntity argument, string value)
 {
     argument.Value = value;
     BusinessManager.Update(argument);
 }