Simple query in Linq to SQL for selecting the data:
try
{
DataBaseDataContext ZCLS = new DataBaseDataContext(new OdbcConnection(strConnection));
//execute query
var result = from s in ZCLS.GroupAddresses
select s;
/* select new (s.ChannelNo,s.ChannelPhone,s.IPNo,s.ComputerName,s.UserName);*/ for selecting some of the
fields.
}
catch (Exception ex)
{
// code yours
}
Subscribe to:
Post Comments (Atom)
How To Pass An Array As A Parameter While Calling an ASP.NET Web API C#
Please visit my C# Corner Blog for this, where I have provided better efforts to make this concept more understandable - www.c-sharpcorner....
-
This article will teach you how use the bubble sort algorithm in c#. Yes, this may sometimes be asked in interview also. First of all ...
-
This post will show you detailed information about how to host your webpage on google drive. It's really very simple job to host a w...
-
This blog is for those who want to connect Visual Studio with Oracle Database 10g or lower upto 9i. I seen there are lots of problem whi...
No comments:
Post a Comment