LINQ using C#.net [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
How to get started learning LINQ in C#.net.

LINQ is a pretty big subject.
I would start with Hooked On LINQ
The way I learned Linq was from the book Linq in Action

Get LinqPad!
Its a great way to learn LINQ, supports LINQ to SQL, LINQ to Objects and LINQ to XML, and it comes preloaded with 200+ examples from the book C# 3.0 in a Nutshell.

The MSDN Getting Started With LINQ Page was helpful to me.

The videos at http://www.asp.net/learn/ are great. They have an entire section on Linq that will take you from "new solution" to fully working examples.
http://www.asp.net/learn/linq-videos/

I'm a long-time SQL developer, and I found that all I needed for the transition to learning LINQ was 101 LINQ Samples off of msdn. All the basics are there, if you understand the generalities of a query-based syntax already. I don't know what your existing expertise is, so thought I'd throw that out there.

Related

How to make the currency for an economy bot? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am trying to make an economy bot for discord using C#. I am confused about how I am going to do it. I might have to use databases but in that case how do I make it so it makes a new line for every user that has used the command. Any help would be nice, thanks.
You need to use a database. If this is your first time using databases, I highly recommened SQLite. You should also see video tutorials such as this one.
Once you have familiarised yourself with a SQLite databases then you will be able to answer your own question extremely easily. It is not difficult and requires some very simple logic. Attempt it yourself first and if you are still stuck reply to this answer.
Consider viewing this W3Schools resource when you are comfortable with the basics.

Advantage of Linq over direct SQL queries? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
What are the effects of Linq on an application rather than SQL queries?
Is there is any issue in using Linq in case of large amount of data for a long time of period?
What are the behavioral key difference between both?
Simple advantages
Creating in-memory collections
for a number of situations it would be easier to read and write. (note there are some queries that would make more sense in SQL)
Allows you to call C# functionality that you create or from the .net framework to interact with your data.
In some cases it is easier to debug.
For a more in depth and correct answer go to Learning about LINQ

When to ditch LINQ? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
LINQ just seems to generate horrendously optimised SQL (in general). I can write way more efficient T-SQL myself.
Do huge websites with my thousands of daily visitors use LINQ? Or should LINQ at some point be ditched? And if so, with what? and when?
Do huge websites with my thousands of daily visitors use LINQ?
Yes. Why not? Most SQL is trivial and you can always fall back to a stored procedure where it matters.
And that is the point. Let LINQ handlethe easy 80% and focus on the more complex.
And ther rest you handle by not talking to the database - caching is not that hard to plan for.
What I have done with my apps, when L2S or EF creates inefficient T-SQL is to create a view that does exactly what I want, in an efficient manner and I just have L2S or EF query the view.
In fact, this website (stackoverflow) uses linq2sql extensively, although I believe they are using a micro-orm (sqlfu?) for some of the heavier taks..

how to use LINQ in entity frame work [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am a beginner in Entity framework , I want to use LINQ in EF. so please guide me from where i should start learn, what is the basic resources for this .
Try these two links
http://msdn.microsoft.com/en-us/data/ff628210.aspx
http://msdn.microsoft.com/en-us/library/bb386964.aspx
The best way to learn is to use them in the real projects
There are basically three ways you can query data in EF:
LINQ To Entities - Uses standard LINQ operators; more intuitive
Entity SQL - Syntactically similar to TSQL; targets Conceptual Schema directly
Query Builder Methods - Uses Extension Methods defined on IEnumerable and IQueryable
LINQ To Entities is the most preferred way followed by Query Builder Methods.
You can start by understanding most common operators used with LINQ To Entities. Eg., from, join, into, let, group by, order by, select, etc.

Best way to learn MySql [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
i want to learn mysql. what i do for learn it.
Currently i Read books on MySql. any other way for learn it
Just start using it. Build some stuff, play with it, you will run into problems eventually. And then you can use your books (and internet) to solve them.
Well, this site will give you some good execises. Search some of the questions (even if answered) and see if you can follow what eh answers do. See if you can get to the answer without looking ( Dont cheat X-) ).
Ask if you cant find the solution, but dig in, try some of the "LIVe" examples.
Think about some problem domain like a library for example. It will contain books, periodicals, cds, dvds, etc. It will have certain actions like taking out a book, returning a book, issuing library cards, etc. Model this in the database of your choice, and write the sql to extract as much of this information as possible: things like who has overdue books, when will the persons library card expire, how many items are catalogued as comp-sci, etc. You get the idea.
After completing this exercise you will know more sql than most developers !

Categories