2

Closed

Congrats on the first release

description

Excellent work guys. I've been trying to get VS 2008 to regenerate the designer.cs file from a .dbml file but for some reason any new association that I add doesnt generate the corresponding code in designer.cs
 
I found my way to your tool, played around and I got it to generate a designer.cs like file from a single .dbml file. However, it used the original Database Column names instead of those I defined in the DBML. Can you make this in your future release?

file attachments

Closed Mar 4, 2008 at 6:57 PM by benjamine

comments

Korayem wrote Feb 27, 2008 at 7:07 PM

For example, you genereted from the dbml file
[Column(Storage="_MEMBER_ID", DbType="Int NOT NULL IDENTITY", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true, IsDbGenerated=true, UpdateCheck=UpdateCheck.Never)]
public int MEMBER_ID
{
    get
    {
        return _MEMBER_ID;
    }
    set
    {
        _MEMBER_ID = value;
    }
}

While what I was expecting was:
[Column(Name="M_NAME", Storage="_Username", DbType="NVarChar(75)")]
public string Username
{
    get
    {
        return this._Username;
    }
    set
    {
                     this._Username = value;
    }
}

Korayem wrote Feb 27, 2008 at 7:12 PM

I took a look in your code and did some small modifications and now I am getting the results I expected.

If it wasn't for your good coding style, I wouldn't manage to modify the code. It took me less than 5 minutes ;)

wrote Feb 27, 2008 at 7:12 PM

wrote Feb 29, 2008 at 12:39 AM

benjamine wrote Feb 29, 2008 at 11:18 AM

Korayem,

You're absolutely right about this, we were ignoring the "Member" attribute of the dbml,
I will merge your attached code and upload it on the next ChangeSet,

Thanks for your kind collaboration and congrats!,

wrote Feb 29, 2008 at 11:18 AM

wrote Mar 4, 2008 at 6:57 PM

Resolved with changeset 6606.

Korayem wrote Mar 9, 2008 at 5:39 PM

Excellent!! i am glad that I was of any aid ;)

I am downloading the current source code and playing with it

wrote Feb 2, 2013 at 5:13 AM

wrote May 14, 2013 at 10:55 PM