Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
public partial class Test
    {
        private string _employeeid;
        [Column(Storage = "_employeeid" , DbType = "NVarChar(1000) NOT NULL",Name="employeeid")]
        public string employeeid
        {
            get
            {

                return this._employeeid;
            }
            set
            {
                if ((this._employeeid != value))
                {
                    this._employeeid = value;
                }
            }
        }

    }



if Name is dynamic not fixed in Column,how to solve
Posted
Comments
TheyCallMeMrJames 22-Jul-10 14:17pm    
I've added an answer which I think addresses your issue. If not, could you please elaborate?

1 solution

I think you are referring to a name being composed of multiple columns?

If so, create a partial class with the same name as your table. Create a property that has a get{}. Use the get{} to compose and return a string that represents the user's name.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900