Created
January 19, 2009 18:50
-
-
Save mariusz/49102 to your computer and use it in GitHub Desktop.
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 static int AddProject(string name, string data) | |
| { | |
| ProjectsTableAdapters.ProjectsTableAdapter adapter = new Preprocessor.ProjectsTableAdapters.ProjectsTableAdapter(); | |
| ProjectsDataTable table = adapter.GetData(); | |
| ProjectsRow row = table.NewProjectsRow(); | |
| row.Name = name; | |
| row.Data = data; | |
| table.Rows.Add((DataRow)row); | |
| int id = row.ProjectID; | |
| adapter.Update(table); | |
| // table.AcceptChanges(); | |
| return id; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment