我有一些数据库服务器和很少的开发人员.
我已经在我的PC上为每个服务器设置了数据库连接定义,现在我想与其他开发人员共享,但我不确定如何导出和导入定义.
我在Ubuntu 10.04(lucid)上运行pgAdmin 1.10.2.
你们有没有人能告诉我如何完成以下任务?
// Prepare object to be saved
// Note that MasterTable has MasterTableId as a Primary Key and it is an indentity column
MasterTable masterTable = new MasterTable();
masterTable.Column1 = "Column 1 Value";
masterTable.Column2 = 111;
// Instantiate DataContext
DataContext myDataContext = new DataContext("<<ConnectionStrin>>");
// Save the record
myDataContext.MasterTables.InsertOnSubmit(masterTable);
myDataContext.SubmitChanges();
// ?QUESTION?
// Now I need to retrieve the value of MasterTableId for the record just inserted above.
Run Code Online (Sandbox Code Playgroud)
亲切的问候