Quote
error 0019: Each property name in a type must be unique. Property name was already defined.
i'm using the code first approach and a sql server 2008 by the way.
this is one of the class representations of the tables:
[Table("bo")]
public class TbPBO
{
[Required(AllowEmptyStrings = false, ErrorMessage = "O campo de nome nao pode ser nulo")]
[MaxLength(55, ErrorMessage = "O campo de nome nao pode ter mais que 55 caracteres")]
[Column("nome", TypeName = "char", Order = 4)]
public string TbBonome { get; set; }
}
this is the other class representation of the table:
[Table("bi")]
public class TbPBi
{
[Required(AllowEmptyStrings = false, ErrorMessage = "O campo nome nao pode ser nulo")]
[MaxLength(55, ErrorMessage = "O campo nome nao pode ter mais que 55 caracteres")]
[Column("nome", TypeName = "char", Order = 62)]
public string TbBinome { get; set; }
}
any idea on how to work around this? one more thing. the database must not be changed in any way. i cannot modify it.
help would be appreciated. thanks in advance







