SilverlightPhoneDatabase.Table create warnings

Nov 21, 2010 at 10:50 PM

I am using the latest version of Visual Studio, the one provided with the WP7 SDK. When attempting to compile the test project, the following errors are produced:

Warning 1 'SilverlightPhoneDatabase.Table<SilverlightPhoneDatabaseTest.Person>.Table()' is obsolete: 'Do not use constructor - use Database.CreateTable() instead' C:\Users\OEM\Downloads\Microsoft Phone 7\SilverlightDatabase\SilverlightPhoneDatabaseTest\MainPage.xaml.cs 460 35 SilverlightPhoneDatabaseTest

Warning 2 'SilverlightPhoneDatabase.Table<SilverlightPhoneDatabaseTest.Person>.Table()' is obsolete: 'Do not use constructor - use Database.CreateTable() instead' C:\Users\OEM\Downloads\Microsoft Phone 7\SilverlightDatabase\SilverlightPhoneDatabaseTest\MainPage.xaml.cs 598 35 SilverlightPhoneDatabaseTest

I would suggest you correct these.

 

Thanks,

docorrin

Coordinator
Nov 21, 2010 at 11:26 PM

Those errors are from tests specifically designed to ensure that an exception is thrown when new table is created outside of DB.Create, so these warnings are intentional.

Thanks.

 

Sergey