Exemplo n.º 1
0
        /// <summary>
        /// Persists a new instance of value. Returns true on success.
        /// </summary>
        /// <returns></returns>
        private bool Create()
        {
            this.ValueGuid = Guid.NewGuid();

            int rowsAffected = DBItemFieldValues.Create(
                this.ValueGuid,
                this.SiteGuid,
                this.FeatureGuid,
                this.ModuleGuid,
                this.ItemGuid,
                this.FieldGuid,
                this.FieldValue);

            return(rowsAffected > 0);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Persists a new instance of value. Returns true on success.
        /// </summary>
        /// <returns></returns>
        private bool Create()
        {
            this.valueGuid = Guid.NewGuid();

            int rowsAffected = DBItemFieldValues.Create(
                this.valueGuid,
                this.siteGuid,
                this.featureGuid,
                this.moduleGuid,
                this.itemGuid,
                this.fieldGuid,
                this.fieldValue);

            return(rowsAffected > 0);
        }