Created
June 25, 2014 11:27
-
-
Save hfoffani/15006f0368833659c2bc to your computer and use it in GitHub Desktop.
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
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