Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Partial class declaration errors
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01531602
Message ID:
01532126
Views:
47
>I am in the process of creating the mm business classes. After I create them and build the business object library I get an error for every class built. The error is Partial declarations of 'Shawn.AW.Data.Address' must not specify different base classes c:\AW\AWDataLayer\EntityDataModel.cs
>
>The error above is for the Address table but every table has the same error.
>
>I am using VS 2010 MM.Net 4.0. My database is AdventureWorks in SqlServer 2008R2.
>
>My project was started from the MM.NET Entity Frameword Business Object Model.
>
>My selections for the business layer generator were:
>All defaults. Selected Entity Framework and Generate Partial Classes on the first screen.
>All of the tables. Made no changes to the business object settings or entity properties.
>Generate Data Access Layer was selected. Use Dynamic SQL Satements was selected.
>
>Immediately after the Generator created the classes I did a build and that is when I got the errors for every object that was built.
>
>Can someone tell me what is wrong?
I got this error before. I'm not 100% sure but I believe the problem was that I had run the business layer generator once with the checkbox for creating a separate folder for each business object checked and another time with it unchecked. That resulted in two base classes with the same name.
Linda Harmes
HiBit Technologies, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform