private sdk GetByWhereClause(Expression <Func <sdk, bool> > whereClause) { var res = dbConnection.sdks.Where(whereClause); try { sdk row = res.Single(); return(row); } catch (Exception) { // Do nothing } return(null); }
public Boolean SaveSDK(string sdkName, string outputPath) { sdk dbSdk = new sdk { name = sdkName, output_path = outputPath }; dbConnection.sdks.InsertOnSubmit(dbSdk); try { dbConnection.SubmitChanges(); return(true); } catch (Exception e) { Console.WriteLine(e.Message); Environment.Exit(1); return(false); } }
partial void Updatesdk(sdk instance);
partial void Deletesdk(sdk instance);
partial void Insertsdk(sdk instance);