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

  • SEARCH
  • Home
  • 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 4542782
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:26:21+00:00 2026-05-21T15:26:21+00:00

I have following model class in my application: public class Dispute { public long

  • 0

I have following model class in my application:

public class Dispute
{
    public long DisputeId { get; set; }

    //[ForeignKey("Creditor")]   FK;
    [Column("Creditor Registry ID")]
    public long CreditorRegistryId { get; set; }

    //[ForeignKey("Registrant")]   FK;
    public long BorrowerId { get; set; }

    [ForeignKey("Account")]
    [Column("Creditor Registry ID", Order = 1)]  // Fk
    public int AccountCreditRegistryId { get; set; }

    [ForeignKey("Account")]
    [Column("Account No", Order = 2)]  // Fk
    public int AccountNo { get; set; }

    public virtual Account Account { get; set; }
    public virtual ICollection<DisputeTransaction> DisputeTransactions { get; set; }
}

and I am getting following error when I run the application:

Schema specified is not valid. Errors:
(90,6) : error 0019: Each property name in a type must be unique. Property name ‘Creditor Registry ID’ was already defined.

account table has composite key which is being used in dispute entity.

Please suggest solution.

Thanks.

  • 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-05-21T15:26:22+00:00Added an answer on May 21, 2026 at 3:26 pm

    Are you sure you can add the same column “Creditor Registry ID” twice and of a different type?

    [Column("Creditor Registry ID")]
    public long CreditorRegistryId { get; set; }
    
    [ForeignKey("Account")]
    [Column("Creditor Registry ID", Order = 1)]
    public int AccountCreditRegistryId { get; set; }
    

    should the 2nd property be:

    [ForeignKey("Account")]
    [Column("Account Credit Registry Id")]
    public int AccountCreditRegistryId { get; set; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In an ASP.NET MVC application where I have the following model.. public class EventViewModel
I have the following Model: public class DeliveryTracking { public string TrackingRef { get;
I’m developing MVC application and I have following classes in my model: public class
I have following models setup in my Django application class School(models.Model): name = models.TextField()
hi i have to following model class Match(models.Model): Team_one = models.ForeignKey('Team', related_name='Team_one') Team_two =
In my GWT app I have the following model class: import com.google.gwt.user.client.rpc.IsSerializable; public class
I have the following classes: public class Truck { public Wheel Wheel { get;
I have the following model: class User: name = models.CharField( max_length = 200 )
Ok say I have the following model: class Country < ActiveRecord::Base validates_presence_of :name validates_presence_of
I am using appengine, webapp2 framework. I have the following model: class Match(db.Model): date_time

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.