public IEnumerable<CommodityPrice> GetAllTimeFrameDaily() { return _dbprice.ExecuteQuery<CommodityPrice>(\"SELECT MIN(CommodityPrice.dtm_Date),MAX(CommodityPrice.dtm_Date) FROM CommodityPr
Trouble with using Max in where clause of LINQ to SQL. Data below: QID,Question,TypeID,Disable, VersionID, Sequence
I have probably written the same LINQ to SQL statement 4-5 times across multiple projects. I don\'t even want to have to paste it. We use DBML files combined with Repository classes. I would like to s
I\'m looking for best way to write a query with LINQ or an expression tree to return a dynamic result according to dynamic input. For example, consider this pseudocode:
I\'ve gotten in the silly habit of doing this: return (from c in db.tblUserAlerts where c.userID == UserID && !c.hasRead
I have to admit, I am just plan stumped....I have the below LINQ to SQL Method --> public static int GetLastInvoiceNumber(int empNumber)
I want to replace existing records in the DB with new records in one transaction.Using TransactionScope, I have
I have write a inner join query. In SQL Server it is working fine, but I want to write this query usin开发者_如何学Pythong Linq-to-SQL. Can anybody help me please?
I have a table with a date field and time field.I want to retrieve a result set grouped by the month and the number of records that appear within that month. How can this be done in LINQ?
I\'m doing some refactoring to eliminate SqlDataSource controls. Below is code from my business logic class that is intended to return a list of images for a given ID.