Skip to main content

Posts

Showing posts with the label Visual Studio 2008

Visual Studio and LinqToSql (.dbml)

Visual Studio 2008 and onward  provides LinqToSql(.dbml) Item to automatically create entities, generate classes and provides a designer to manipulate those entities classes. Inserting new Data in tables :             Inventory newCar = new Inventory();             newCar.Make = "Yugo";             newCar.Color = "Pink";             newCar.PetName = "Betty";             newCar.CarID = newCarID;             ctx . Inventories . InsertOnSubmit (newCar);             ctx . SubmitChanges() ; Updating Data :             v...