I just moved my DB over to SQL Server 2005 Express and regenerated my code (Adapter, VS.NET 2005 with C# Template set for SQL Server).
On compilation, the generated code produced several "Unrecognized Escape Sequence" errors. The errors seem to be caused by file paths (unique to the Express .MDF file architecture?). The "escape sequences" that are underlined by the compiler are all of the "\letter" strings in the file paths.
Any help? Thanks.
private static PersistenceInfoBucket CreateEventEntityBucket()
{
PersistenceInfoBucket toReturn = new PersistenceInfoBucket();
toReturn.AddFieldPersistenceInfo("EventId", new FieldPersistenceInfo("C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL.1\MSSQL\DATA\CMS_DATA.MDF", @"dbo", "Event", "EventID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32)));
toReturn.AddFieldPersistenceInfo("Name", new FieldPersistenceInfo("C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL.1\MSSQL\DATA\CMS_DATA.MDF", @"dbo", "Event", "Name", false, (int)SqlDbType.VarChar, 100, 0, 0, false, "", null, typeof(System.String)));
toReturn.AddFieldPersistenceInfo("Description", new FieldPersistenceInfo("C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL.1\MSSQL\DATA\CMS_DATA.MDF", @"dbo", "Event", "Description", false, (int)SqlDbType.VarChar, 1000, 0, 0, false, "", null, typeof(System.String)));
toReturn.AddFieldPersistenceInfo("StartDateTime", new FieldPersistenceInfo("C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL.1\MSSQL\DATA\CMS_DATA.MDF", @"dbo", "Event", "StartDateTime", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime)));
toReturn.AddFieldPersistenceInfo("EndDateTime", new FieldPersistenceInfo("C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL.1\MSSQL\DATA\CMS_DATA.MDF", @"dbo", "Event", "EndDateTime", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime)));
toReturn.AddFieldPersistenceInfo("LocationId", new FieldPersistenceInfo("C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL.1\MSSQL\DATA\CMS_DATA.MDF", @"dbo", "Event", "LocationID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32)));
toReturn.AddFieldPersistenceInfo("RecurrenceId", new FieldPersistenceInfo("C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL.1\MSSQL\DATA\CMS_DATA.MDF", @"dbo", "Event", "RecurrenceID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32)));
toReturn.AddFieldPersistenceInfo("LastDateScheduled", new FieldPersistenceInfo("C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL.1\MSSQL\DATA\CMS_DATA.MDF", @"dbo", "Event", "LastDateScheduled", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime)));
toReturn.AddFieldPersistenceInfo("AllDatesScheduled", new FieldPersistenceInfo("C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL.1\MSSQL\DATA\CMS_DATA.MDF", @"dbo", "Event", "AllDatesScheduled", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean)));
return toReturn;
}