pakaging a class to create table in db RRS feed

  • General discussion

  • hi,
    if i want to use linq to sql to read  the table in my db ,i only know two methods. one is use dbml  ,the other is that you set the Frame of my table as follow:
    [Table(Name = tablename)]                               
    public class table
        private float columnname;
        public float columnname

    so my question is that if i want to create db in my server i should set a lot of tables like this ,it's so boring , i want to pachaging a class ,i just set the tablename ,columnname and other informations ,this class could help me set the table Frame, is that possible or linq to sql have other methods to help me doing this?

    any replies would be appreciated
    Thursday, July 16, 2009 1:13 AM