Beispiel #1
0
        public EntityPropertyRulesCreator(EntityPropertyRules r)
        {
            this.Rules = r;

            if (r.ReadRule == null)
            {
                SetRead(this.NotSupportedRule);
            }
            if (r.WriteRule == null)
            {
                SetWrite(this.NotSupportedRule, false);
            }
            if (r.DeleteRule == null)
            {
                SetDelete(this.NotSupportedRule);
            }
        }
Beispiel #2
0
        public void Set <T>(string property, SerializeMode mode)
        {
            EntityPropertyRules modes = this[typeof(T)];

            modes.SetMode(property, mode);
        }