Changeset 3955 for branches/HeuristicLab.Services.Authentication Prototype/Persistence/DatabaseUtil.cs
- Timestamp:
- 06/26/10 10:13:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Services.Authentication Prototype/Persistence/DatabaseUtil.cs
r3950 r3955 11 11 /// <returns>database connection (could be null)</returns> 12 12 public static DataClassesDataContext createDataClassesDataContext() { 13 DataClassesDataContext db; 14 try { 15 db = new Persistence.DataClassesDataContext(@"C:\TEMP\HeuristicLabTest.mdf"); 16 } 17 catch (Exception) { 18 return null; 19 } 20 return db; 13 return new Persistence.DataClassesDataContext(@"C:\TEMP\HeuristicLabTest.mdf"); 21 14 } 22 15
Note: See TracChangeset
for help on using the changeset viewer.