This question is locked. New answers and comments are not allowed.
VS 2008 w/ SP1 Arc Ed
SQL 2005 Expr
Table Project
ProjectID int identity(1,1) PK
...other fields...
Table Task
TaskID int identity(1,1) PK
ProjectID int [Foreign Key]
... other fields ...
Steps to Reproduce
1) Created C# Class Library
2) Enable OpenAccess on Project
3) Using the Reverse Engineering Wizard check the one to many box in the Task class so that Project now has a property IList<Task> Tasks.
4) Build/Compile all is good.
5) Reopen the reverse engineering Wizard and uncheck the one-to-many box in the Task class so that Project.Tasks no longer exists and regenerate code.
6) The class definition is correct as no IList<Task> is created - but the mapping file still maintains the tasks definition and fails to build. You have to manually remove the "tasks" element in the mapping file.
Al
SQL 2005 Expr
Table Project
ProjectID int identity(1,1) PK
...other fields...
Table Task
TaskID int identity(1,1) PK
ProjectID int [Foreign Key]
... other fields ...
Steps to Reproduce
1) Created C# Class Library
2) Enable OpenAccess on Project
3) Using the Reverse Engineering Wizard check the one to many box in the Task class so that Project now has a property IList<Task> Tasks.
4) Build/Compile all is good.
5) Reopen the reverse engineering Wizard and uncheck the one-to-many box in the Task class so that Project.Tasks no longer exists and regenerate code.
6) The class definition is correct as no IList<Task> is created - but the mapping file still maintains the tasks definition and fails to build. You have to manually remove the "tasks" element in the mapping file.
Al