标签:ar io sp on ad ef amp as tt
var propertyType = propertyInfo.PropertyType;
if (propertyType.IsGenericType &&
propertyType.GetGenericTypeDefinition() == typeof(Nullable<>))
{
propertyType = propertyType.GetGenericArguments()[0];
}
model.ModelProperties.Add(new KeyValuePair<Type, string>
(propertyType.Name,propertyInfo.Name));
标签:ar io sp on ad ef amp as tt
原文地址:http://www.cnblogs.com/zwei1121/p/4166490.html