コード例 #1
0
        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);
        }
コード例 #2
0
		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;
		}
コード例 #3
0
        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);
        }
コード例 #4
0
		public SCPropertyAccessorBase(SchemaNameAndPropertyName snpn)
		{
			this._SchemaAndPropertyName = snpn;
		}
コード例 #5
0
		public DefaultUsersPropertyAccessor(SchemaNameAndPropertyName snpn) :
			base(snpn)
		{
		}
コード例 #6
0
 public SCPropertyAccessorBase(SchemaNameAndPropertyName snpn)
 {
     this._SchemaAndPropertyName = snpn;
 }
コード例 #7
0
 public DefaultUsersPropertyAccessor(SchemaNameAndPropertyName snpn) :
     base(snpn)
 {
 }