Exemple #1
0
        public ColumnMemberInfo(string columnName, LambdaExpression fieldExpr)
        {
            _ColumnName      = columnName;
            _DeepMemberRoute = fieldExpr.GetDeepMemberRoute();

            int depth = _DeepMemberRoute.Length;

            if (depth == 0 || _DeepMemberRoute[depth - 1].DataType.CanMapToDbType() == false)
            {
                throw new ApplicationException("The (Underlying)Type of end Property Or Field must be a Value Type.");
            }
        }