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); } }
public void Set <T>(string property, SerializeMode mode) { EntityPropertyRules modes = this[typeof(T)]; modes.SetMode(property, mode); }