This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I just wanted to test out the Migrations in LS3 and after creating a simple migration The type or namespace DescriptionAttribute is not found. missing using reference. Should this be referenced automatically? And what DescriptionAttribute class does it refer to? [Migration(1)] |
|
|
It certainly should be referenced automatically. It refers to System.ComponentModel.DescriptionAttribute, and we should be inserting a "using System.ComponentModel;" to make it resolve. Is that using statement missing? Could you post the full generated .cs file please? Thanks! Also, as a heads up, we are changing migrations numbering to use a timestamp rather than a plain number: [Migration("20091109082300")] This is to support the scenario where two people are working on the model simultaneously and each creates a migration -- at present each would get the same "next number in sequence," whereas a timestamp allows both migrations to be placed in sequence without clashing. However, it means that migrations built with current versions of the beta will need to be manually fixed up to work with the next version. We'll be happy to provide guidance if this becomes an issue for you. |
|
|
Yes "using System.ComponentModel" was added to the generated file. Also System.dll was added to the project references. Digging deeper I discovered that my migrations project was targeting Windows CE and the compact framework. I guess when I created the project I just typed in a name and clicked enter never looking at what type of project. I have never created a compact framework project, so why it chose that as the default choice for me I dont know. I tried to duplicate the creation of a data migration project but when I click "New Project" from the Set Migrations Project menu nothing happens. Thanks for the heads up on the change in migration numbers |
|