1
Reply

Select and Delete Data Using LINQ With WCF?

Rohan  Rathore

Rohan Rathore

11y
1.1k
0
Reply

    public class MyDatabse : DataContext {public Table Bookss;public MyDatabse(string connection) : base(connection) { } }[Table(Name = "Books")] public class Bookss {[Column(IsPrimaryKey = true)]public string Title;[Column]public string Rating; } class Program {static void Main(string[] args){CreateDatabase("DynamicDatabase11");}public static void CreateDatabase(string Dbname ){MyDatabse db = new MyDatabse("ConString" Dbname "");db.CreateDatabase();} }