Last active
September 25, 2016 20:10
-
-
Save eschneider999/f6f0f3ae6bf1aa9da127dfe49c3fb88d to your computer and use it in GitHub Desktop.
Symbiotic ORM Delete
This file contains 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 TestDelete() | |
{ | |
IDatabaseTypesFactory factory = new DatabaseTypesFactorySqlServer(); | |
// Intialize database connection string | |
factory.ConnectionString = "Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=D:\\Dev\\FrozenElephant\\SymbioticORM\\SqlDatabase\\SymbioticTestLocal.mdf;Integrated Security=True;Connect Timeout=30"; | |
IObjectWriter writer = factory.CreateObjectWriter(); | |
ErrorItem er = CreateErrorItem("Test 444 " + DateTime.Now.ToString()); | |
writer.Create(er); | |
writer.Delete(er); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment