Ejemplo n.º 1
0
        //TODO utile per recuperare i report locali in progress
        public static DataRow[] ReadBy(string filter)
        {
            LocalTestTableTableAdapter adapter = new LocalTestTableTableAdapter();

            LocalTestDatabaseDataSet.LocalTestTableDataTable localTestTableDataTable = adapter.GetData();
            return(localTestTableDataTable.Select($"Userid = '{filter}'"));
        }
Ejemplo n.º 2
0
        public static void Save(int id, string userId, string title, bool completed)
        {
            LocalTestTableTableAdapter adapter = new LocalTestTableTableAdapter();

            adapter.Insert(id, userId, title, completed);
        }