private static SCPropertyAccessorBase GetPropertyAccessor(string funcName, SCConditionCalculatingContext context) { SCPropertyAccessorBase result = null; SchemaNameAndPropertyName snpn = SchemaNameAndPropertyName.FromFullName(funcName); snpn.CheckIsValid(); if (context.PropertyAccessors.TryGetValue(snpn, out result) == false) { result = new DefaultUsersPropertyAccessor(snpn); context.PropertyAccessors.Add(snpn, result); } return(result); }
public static SchemaNameAndPropertyName FromFullName(string fullName) { fullName.CheckStringIsNullOrEmpty("fullName"); string[] nameParts = fullName.Split(SchemaNameAndPropertyName._SplitChars, StringSplitOptions.RemoveEmptyEntries); SchemaNameAndPropertyName result = new SchemaNameAndPropertyName(); result.SchemaName = nameParts[0]; if (nameParts.Length > 1) result.PropertyName = nameParts[1]; else result.PropertyName = null; return result; }
public static SchemaNameAndPropertyName FromFullName(string fullName) { fullName.CheckStringIsNullOrEmpty("fullName"); string[] nameParts = fullName.Split(SchemaNameAndPropertyName._SplitChars, StringSplitOptions.RemoveEmptyEntries); SchemaNameAndPropertyName result = new SchemaNameAndPropertyName(); result.SchemaName = nameParts[0]; if (nameParts.Length > 1) { result.PropertyName = nameParts[1]; } else { result.PropertyName = null; } return(result); }
public SCPropertyAccessorBase(SchemaNameAndPropertyName snpn) { this._SchemaAndPropertyName = snpn; }
public DefaultUsersPropertyAccessor(SchemaNameAndPropertyName snpn) : base(snpn) { }