I am trying to programmatically drop a column in a table inside of an access database and found myself unable to do so! Is it at all possible? it makes me think that i don't have any clear idea of things linq to sql can't do. Any ideas?
相关问题
- Rhino Mocks - Testing Repository layer returns “ob
- Auto-increment a primary key in the LINQ to SQL Da
- LINQ to SQL complex join with mixed conditions
-
Customizing IQueryable
- How to use DbFunction translation in EF Core?
相关文章
- How to use ALTER TABLE to add a new column and mak
- DateDiff in LINQ
- “Between” in Linq C# [duplicate]
- How to build up a Linq to Sql where clause bit by
- SQL alter column datatype from nvarchar to int
- Linq-To-Sql and MARS woes - A severe error occurre
-
How to return Generic.List
from a f - LongListSelector on WP8 linq-to-sql binding issue
You can do it. Here's an example:
GO
There's nothing in LINQ to SQL that allows you to do that without writing T-SQL, no.
Similarly, you can't do straight updates or deletes without selecting the data you want to alter first and manipulating the objects. You'd have to write stored procedures for those things and add them to your model to be called. See this MSDN page for an overview.
Using DataContext.ExecuteQuery should also work if you don't mind T-SQL in your source code.