Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8015965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:24:33+00:00 2026-06-04T20:24:33+00:00

I have a Data Models–created by Linq2SQL Class Diagram tool–in another assembly (Class Library

  • 0

I have a Data Models–created by Linq2SQL Class Diagram tool–in another assembly (Class Library Project) and I created another one

Here it is:

public partial class Customer : INotifyPropertyChanging, INotifyPropertyChanged
{

    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
    private int _ID;
    private string _FirstName;
    private string _LastName;
    private string _Email;
    private System.DateTime _DOB;
    private string _PhoneNumber;
    private bool _Activated;
    private bool _Suspended;
            //..
}

In my Web Project, I created another one with the same name as partial:

  public partial class Customer
  {
    //It will have MetadataTypeAttribute for validation.
  }

I am using same namespace for them so they should be fine however, when I make View as Strongly typed using Customer object:

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Customer>" %>

I get this error:

[System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()] Line
184: public class views_register_registrationformcontrol_ascx :
System.Web.Mvc.ViewUserControl {

Detailed Error Screen Shot: https://i.stack.imgur.com/SlZ4p.png

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T20:24:35+00:00Added an answer on June 4, 2026 at 8:24 pm

    The problem is that you cannot have partial classes across multiple assemblies:

    Check this answer

    Is it possible to have two partial classes in different assemblies represent the same class?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A] Problem Summary: I have one to many data models in my project. I
I'm developing a rails project where I have one data model with multiple fields
I have homework and I'm supposed to draw a class diagram AND data model.
I have a pre-existing project to which I've added Core Data models. I added
Let just say I have the following data models: public class Account { public
I am working on a project where we have data models that look basically
I'm working on a project where I have to reflect through data models to
I have two data models: Writer.AttributValeur and Writer.Produit . Writer.Produit has HasMany / BelongsTo
I have an application that uses Core Data. I have two data models in
At the moment, I have two Core Data models, Model A and Model B.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.