0

I recently came across the following definition:

<class name="X" table="master..[User]" ... />

what does the above definition mean?

1
  • are the dots in the code or have you added them?...could you post all (or significant part of) code? Commented Oct 1, 2012 at 15:30

1 Answer 1

1

It is a mapping declaration for class X to the table User in the master database, probably on SQL Server.

In SQL server you can qualify a table name with a database using double-dot. Square brackets around a name ensure that reserved words or names with spaces can be correctly identified.

Here's the reference to the mapping declararation, section 5.1.3

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.