I allow users to specify the data source and connection details. When this is complete, I set the Entity connection string. How do I validate the database they have chosen against the entity 开发者_JAVA技巧model right away? I don't want to get further in the program to have it fail.
Check for the existence of a known table and/or use a version table to store the schema version.
精彩评论