in DacFxStronglyTypedModel/TSqlModelElement.cs [41:54]
public TSqlModelElement(TSqlObject obj, ModelTypeClass typeClass)
{
if (obj == null)
{
throw new ArgumentNullException("obj");
}
else if (obj.ObjectType != typeClass)
{
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
ModelMessages.InvalidObjectType, obj.ObjectType.Name, typeClass.Name),
"typeClass");
}
Element = obj;
}