I'm using DbLinq for mysql version DbLinq_src_v0.17.zip,found a bug
example my database table format
##############################
Table:User
column     type
ID            int        primary key
Name        varchar(50)
=================================
Table:UserRelation
column     type
UserA       int        foreign key[User.ID]
UserB       int        foreign key[User.ID]
##############################

and generat "class UserRelation" code is:
//############################################################
private System.Data.Linq.EntityRef<Users> users;
  [Association(Storage = "users", ThisKey = "UserB", Name =
"userrelation_fk1")]
  [DebuggerNonUserCode]
  public Users Users
  {
   get
   {
    return users.Entity;
   }
   set
   {
    users.Entity = value;
   }
  }
  private System.Data.Linq.EntityRef<Users> users;
  [Association(Storage = "users", ThisKey = "UserA", Name =
"userrelation_fk")]
  [DebuggerNonUserCode]
  public Users Users_userrelation_fk
  {
   get
   {
    return users.Entity;
   }
   set
   {
    users.Entity = value;
   }
  }
//##########################################################
that's two smae "private System.Data.Linq.EntityRef<Users> users;" in
[UserRelation] class.
I think it format is "private System.Data.Linq.EntityRef<Users>
A_user;".
and "public Users Users_userrelation_fk" name is
Users_userrelation_fk???why not name "A_User","B_User".

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DbLinq" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/dblinq?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to