Exemplo n.º 1
0
 /// <summary>
 /// Get a MetaType that represents the dynamic type of the given node.
 /// </summary>
 internal static MetaType GetSourceMetaType(SqlNode node, MetaModel model) {
     Visitor v = new Visitor();
     v.Visit(node);
     Type type = v.sourceType;
     type = TypeSystem.GetNonNullableType(type); // Emulate CLR's behavior: strip nullability from type.
     return model.GetMetaType(type);
 }