private static Expression CreateMetaIDExpression (Expression valueExpression, Expression classIDColumn)
{
var metaIDCtor = typeof (MetaID).GetConstructor (new[] { typeof (int), typeof (string) });
Trace.Assert (metaIDCtor != null);
var newExpression = Expression.New (metaIDCtor, new[] { valueExpression, classIDColumn }, new[] { typeof (MetaID).GetProperty ("Value"), typeof (MetaID).GetProperty ("ClassID") });
return NamedExpression.CreateNewExpressionWithNamedArguments (newExpression);
}