Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Partial class declaration errors
Message
From
03/01/2012 16:25:13
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
22/12/2011 22:57:58
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:
01532132
Views:
35
>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?


Shawn,

It should be easy enough to look at the class files especially for those with the same class declarations and see what the base class is. If you plan to re-create them, then make sure all the folders are deleted first from your business project for the ones you want to re-create. This would make sure you don't have multiple declarations for the same classes. It could likley be because just as Linda mentioned.

Timothy
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform