//构造函数 public ExpenseForm(BathDBDataContext dc, Expense menu) { db = dc; if (menu != null) { newExpense = false; m_Expense = menu; } InitializeComponent(); }
partial void UpdateExpense(Expense instance);
partial void DeleteExpense(Expense instance);
partial void InsertExpense(Expense instance);