Skip to content

Instantly share code, notes, and snippets.

@hfoffani
Created June 25, 2014 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hfoffani/15006f0368833659c2bc to your computer and use it in GitHub Desktop.
Save hfoffani/15006f0368833659c2bc to your computer and use it in GitHub Desktop.
private void newapi() {
var data = new ECC.Data.PS100Entities();
var cursor = data.Notes.Where(x => x.Text == "Bien");
var result = cursor.ToArray();
var nota = new Note();
nota.Text = "hola";
data.Notes.AddOrUpdate(nota);
var no_esta = data.Notes.Find(30303m);
var si_esta = data.Notes.Find(1m);
si_esta.Text = "chau";
data.Notes.AddOrUpdate(si_esta);
data.Notes.Delete(si_esta);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment