Created
September 25, 2016 20:08
-
-
Save eschneider999/db029e9f8a30a45fe14e46277e8d2a09 to your computer and use it in GitHub Desktop.
Symbiotic ORM load item by id
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void TestLoadItemById() | |
{ | |
IDatabaseTypesFactory factory = new DatabaseTypesFactorySqlServer(); | |
factory.ConnectionString = "Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=D:\\Dev\\FrozenElephant\\SymbioticORM\\SqlDatabase\\SymbioticTestLocal.mdf;Integrated Security=True;Connect Timeout=30"; | |
IObjectLoader loader = factory.CreateObjectLoader(); | |
Person p = loader.ObtainItem<Person>(6000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment