Tag: LINQ
Linq.Binary(SQL Image Data Type) Type to File Stream
I got a column with Data Type of Image in SQL Server. What I would like to do is to omit this data to a FileStream or to a file. I tried to read the data using LINQ and I found the data type detected for that particular column is System.Data.Linq.Binary. I was expecting it [...]
Posted: October 3rd, 2008 under .NET, C#, SQL Server.
Tags: .NET, LINQ, SQL Server
Comments: none
SQL Methods in LINQ
I’m trying to implement DateDiff in LINQ. I would like to get all records with the same date and ignoring the timestamp.
Here is my code snippet which doesn’t work
1
2
3
4
5
6
7
8
9
10
11
12
13
14
public int tblExpReceiptFileUniqueID(string chCreateStaffCode, string vcFileName,
[...]
Posted: October 2nd, 2008 under .NET, C#, SQL Server.
Tags: LINQ, SQL Server
Comments: none
Paging in Order BY using LINQ
This is a simple way of doing the paging in LINQ. If I do the paging before the ORDER BY then it will give me different result set. The paging is should be after the ORDER BY Statement. So you sort first then you paging it.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/// <summary>
[...]
Posted: August 29th, 2008 under .NET.
Tags: .NET, LINQ
Comments: none
Simple LINQ Tutorial
I’ve started learning about LINQ because I need to keep up to date with the latest technology out there. I’ve created a simple Business Layer which interact directly with Linq to SQL(DBML). It includes Insert, Update, Delete, Select and paging with LINQ.
Hopefully this tutorial will be useful enough for someone who is going to [...]
Posted: August 29th, 2008 under .NET, C#.
Tags: .NET, LINQ
Comments: none