<column/> tag for [Id] is not generated when no properties with [Column] exist in class

Description

(...)

[Id(Name = "Id", UnsavedValueObject = null)]
[Column(Name = "Id", NotNull = true, Unique = true)]
[Generator(Class = "native")]
public virtual long? Id { get; set; }

[Property(Length = 200)]
[Column(Name = "OsAkt")] //when this declaration is removed then <column name="Id/> for <id> will not be generated
public virtual string OsAkt { get; set; }

(...)

Environment

None

Activity

Show:

Pierre Henri Kuaté October 22, 2009 at 5:11 PM

Yeah, this is an issue of the .NET framework; it doesn't maintain the order of the attributes when reading them via Reflection.

Pawel Gorczynski October 9, 2009 at 6:31 AM

well it looks like it's not the issue, though using properties without indices makes the framework work kinda non-deterministic

Not an Issue

Details

Assignee

Reporter

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created October 9, 2009 at 2:35 AM
Updated October 22, 2009 at 5:11 PM
Resolved October 22, 2009 at 5:11 PM
Who's Looking?