.net - entity framework linq - which should I learn, method-based on query-based? -
just starting getting entity framework , linq ef. i'm not sure of 2 query methods should concentrate on, method-based or query-based?
is there obvious choice 1 easier use, both simple , more complex queries, hence should 1 concentrate on? assuming i'm using vs2010 method based have advantage in terms of having more design time checks/prompts ide make easier things right prior running application?
thanks
the method syntax more complete; there things can't query syntax without plugging in method here or there inline. also, queries, method syntax can seem more concise, imo.
on other hand, query syntax can appear describe query more naturally familiar sql.
i figured use method syntax exclusively when started learning linq in general. find myself pounding out query syntax queries sort of automatically @ times, too. perhaps concentrate on method syntax due completeness , familiarity factor (if @ valuable you), , maybe you'll find query syntax sort of 'comes you' go, too.
Comments
Post a Comment