.net - Duplicate 'Column' attribute -


I am creating an entity using Entity Framework 4.1 and I am using the column to name different columns Am I have an overall key as well as a foreign key but I am getting the error

  public class account {[key] [foreign ("account"), column (order = 0) ] [Column ("Transaction ID", Order = 0)] / PK FK Public Entitlement ID {get; Set; } [Key] [foreign ("account"), column (order = 1)] [column ("[account number]", order = 1)] / pk fk public int account {not set;  

Duplicate 'column' attribute

are both primary keys as well as foreign keys

/ Strong>

Well, you do it! Two columns in each property are defined by the Entitlement Instance. The fact is that they are on different lines and are irrelevant in different sets of square brackets.

It seems that in both cases there is a redundancy on the first line.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -