Skip to content

Instantly share code, notes, and snippets.

@eschneider999
Last active September 25, 2016 20:10
Show Gist options
  • Save eschneider999/f6f0f3ae6bf1aa9da127dfe49c3fb88d to your computer and use it in GitHub Desktop.
Save eschneider999/f6f0f3ae6bf1aa9da127dfe49c3fb88d to your computer and use it in GitHub Desktop.
Symbiotic ORM Delete
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