Beispiel #1
0
        public void Set(Type type, PropertyStore val, object id)
        {
            var query = GetQuery(type, val, id, ProcessQuerySet);

            query.ShouldInsert = false; //
            int affected = query.RunUpdateInsert();

            if (affected == 0)                                 // insert
            {
                ContentTypeHierarchy.EnsureContainsType(type); // this might be the first content item of this type in the db
            }
        }