'LINQ'에 해당되는 글 5건

  1. 2010/04/10 JSINQ - LINQ With JavaScript
  2. 2008/04/03 Charlie Calvert's Community Blog : Link to Everything: A List of LINQ Providers
  3. 2007/11/26 .NET 통합 언어 쿼리 LINQ
  4. 2007/08/08 LINQ to SQL Debug Visualizer
  5. 2007/08/01 VS 2008 and .NET 3.5 Beta 2 Released
2010/04/10 13:53

JSINQ - LINQ With JavaScript

출처 : http://hoons.kr/Board.aspx?Name=info&Mode=2&BoardIdx=33168


훈스닷넷에서 재미있는 글을 발견해서 아래처럼 스크랩 해왔습니다 ^ ^

Javascript에서 LINQ 문법을 사용할 수 있다는 점이 정말 재밌네요~

아래 글을 참고해주세요 ~~








Ajaxian에서 어제 흥미로운 기사를 봐서 블로깅후에 훈스닷넷 개시판에도 남깁니다.
 
JSINQ란 녀석이구요.
 
자바스크립트의 객체나 데이터를 Enumerable 한객체로 변경한뒤에 LINQ문법을 사용할수 있는데요.
제어폭도 생각보다 넓고 놀라운건 .NET 프레임웍 3.5의 연산자를 모두 지원하구요.(ajaxian에는 3.0이라고 나와있는데 codeplex문서는 3.5군요) generic의 확장함수또한 비슷한형식으로 지원하며.. 4.0의 zip머시기 (먼지모름) 도 지원한다고하내요.
 
자세한 내용은 해당테스트 페이와 관련 문서 자료가서셔 보시면 알겠지만 테스트페이지에서 보면 신기하긴하군요.
 
해당테스트페이지 바로가기

관련문서 및 자료
저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License

'Web > JavaScript' 카테고리의 다른 글

Persisting Collapsible TOC State  (0) 2011/03/02
Add Twitter to your blog  (2) 2010/11/05
JSINQ - LINQ With JavaScript  (0) 2010/04/10
Javascript - Element Opacity Control for Cross Browser  (0) 2010/02/18
Ext JS 3.0  (0) 2009/09/23
Javascript : Microsoft OS & Internet Explorer Agent Check  (0) 2009/07/20
올블로그추천버튼 블코추천버튼 블로그뉴스추천버튼 믹시추천버튼 한RSS추가버튼 구글리더기추천버튼


이 포스팅이 도움이 되었다면 구글에서 관련 정보를 찾아 보세요 ^^


Trackback 0 Comment 0

Trackback : http://i-ruru.com/trackback/560 관련글 쓰기

2008/04/03 11:04

Charlie Calvert's Community Blog : Link to Everything: A List of LINQ Providers


Charlie Calvert's Community Blog : Link to Everything: A List of LINQ Providers


LINQ에 제공되는 프로바이더의 종류가 얼마 없을줄 알았는데 정말 많이 제공되네요 -_ -;;


또한 Filcker나 Amazon 등도 보이고 Oracle 등 MSSQL이 아닌 다른 DataBase Provider도 지원하고, MySQL등도 제공하는 등 멋져보이네요.

일반적인 Framework에서는 MSSQL의 SqlClient만 제공되는 것으로 알았다가 새로운 사실에 조금 놀랍네요.


아직 자세한 내용은 확인해보지 않아서 확실히는 모르겠지만..

위에 목록에 제공되는 것들이 많이 보이니 이용할 가치가 크지 않을까 생각합니다.

크리에이티브 커먼즈 라이선스
Creative Commons License
올블로그추천버튼 블코추천버튼 블로그뉴스추천버튼 믹시추천버튼 한RSS추가버튼 구글리더기추천버튼


이 포스팅이 도움이 되었다면 구글에서 관련 정보를 찾아 보세요 ^^


Trackback 0 Comment 0

Trackback : http://i-ruru.com/trackback/310 관련글 쓰기

2007/11/26 14:44

.NET 통합 언어 쿼리 LINQ

http://www.microsoft.com/Korea/MSDN/library/bb308959.aspx


LINQ: .NET 통합 언어 쿼리

Don Box, Anders Hejlsberg

January 2007

적용 대상 :
Visual Studio 2008
.Net Framework 3.5

개요 : 자료에서는 .NET Framework 추가된 범용 쿼리 기능에 대해 설명합니다. 범용 쿼리 기능은 관계형 데이터, XML 데이터 뿐만이 아닌 모든 정보 소스에 적용됩니다. 기능을 .NET LINQ (Language Integrated Query : 통합 언어 쿼리)라고 부릅니다.

목차

.NET LINQ
표준 쿼리 연산자 개요
LINQ 프로젝트를 지원 하는 언어 기능
표준 쿼리 연산자
쿼리 구문
LINQ to SQL: SQL 통합
LINQ to XML: XML 통합
요약

.NET LINQ

개체 지향 (OO) 프로그래밍 기술 진화는 20 년의 세월을 거쳐 이제 안정화 단계에 이르렀습니다. 프로그래머도 클래스, 개체, 메서드와 같은 기능을 다룰 있게 되었습니다.이러한 기술 현상이나 차세대 기술에 관심을 가져보면, OO 기술을 사용하여 네이티브에 정의되지 않은 정보 접근이나 통합의 복잡함을 경감하는 것이 앞으로의 과제입니다. OO 기술에 대응하지 않는 정보 중에서 가장 일반적인 정보 소스가 관계형 데이터베이스와 XML 두가지입니다.

.NET Framework 에서는 프로그램 언어나 런타임에 관계형 고유의 기능이나 XML 고유의 기능을 추가하는 것이 아니라, LINQ 프로젝트라는 범용성 높은 접근 방식을 채용했습니다..NET Framework 범용 쿼리 기능이 추가되어 관계형 데이터나 XML 데이터 뿐만 아니라, 모든 정보 소스에 쿼리 기능이 적용됩니다. 기능을 .NET LINQ (Language Integrated Query : 통합 언어 쿼리)라고 부릅니다.

"통합 언어 쿼리 (LINQ : Language Integrated Query)" 라는 용어가 보여주듯이, 개발자가 주로 사용하는 프로그램 언어 (Visual C#, Visual Basic ) 쿼리 기능이 통합됩니다. LINQ 사용하여 지금까지는 프로그래밍 코드로 밖에 이용할 없었던, 리치 메타데이터, 컴파일시 구문 체크, 정적인 형식 지정, IntelliSense 등의 장점을 "쿼리 " 에서 이용할 있게 됩니다., LINQ 라고 하는 선언형의 단일 범용 쿼리 기능에 의해, 외부 소스로부터의 정보 뿐만이 아니라, 메모리내의 모든 정보에 대해 쿼리 기능을 이용할 수도 있습니다.

.NET LINQ 에서는 연속된 범용 "표준 쿼리 연산자" 정의됩니다. 표준 쿼리 연산자에 의해,.NET 기반의 프로그램 언어내에서 선언형의 직접적 수법을 사용하고, 통과 (일괄) 연산, 필터 연산 프로젝션 연산을 표현할 있습니다.표준 쿼리 연산자에서는 IEnumerable<T> 기반의 모든 정보 소스에 쿼리를 적용할 있습니다.  LINQ사용으로 타사에서 제공되는 표준 쿼리 연산자세트가 증가합니다.이러한 표준 쿼리 연산자 안에는 대상 도메인이나 대상 기술에 대응하는 새로운 도메인 고유의 연산자도 포함됩니다.한층 중요한 점은 타사가 표준 쿼리 연산자를 독자적인 구현에 자유롭게 옮겨놓을 있는 것입니다.타사 독자적인 구현에서는 리모트 평가 쿼리의 번역, 최적화 등의 서비스를 추가할 있습니다. 이러한 구현에서는 "LINQ 패턴" 표기법으로 준거하며, 표준 쿼리 연산자와 같은 통합 언어와 도구 지원을 이용할 있습니다.

이러한 쿼리 아키텍처의 확장성은 LINQ 프로젝트 자체에서도 사용되고 XML데이터와 SQL 데이터의 양쪽 모두로 기능하는 구현을 제공합니다. XML 대한 쿼리 연산자 (LINQ to XML)에서는 효율적으로 사용하기 쉬운, 인메모리 XML 기능을 사용하고, 호스트 프로그램 언어에 XPath/XQuery 기능을 제공합니다. 관계형 데이터에 대한 쿼리 연산자 (LINQ to SQL) 공용 언어 런타임 (CLR) 형식 시스템에 통합된 SQL 기반의 스키마 정의를 기본으로 구축됩니다.이러한 통합에 의해, 관계형 모델의 표현력이나, 기본으로 되는 스토어에서 직접 행해지는 쿼리 평가의 성능을 유지하면서, 관계형 데이터에 엄밀한 형식 지정이 필요합니다.

크리에이티브 커먼즈 라이선스
Creative Commons License
올블로그추천버튼 블코추천버튼 블로그뉴스추천버튼 믹시추천버튼 한RSS추가버튼 구글리더기추천버튼


이 포스팅이 도움이 되었다면 구글에서 관련 정보를 찾아 보세요 ^^


Trackback 0 Comment 0

Trackback : http://i-ruru.com/trackback/203 관련글 쓰기

2007/08/08 22:51

LINQ to SQL Debug Visualizer

http://weblogs.asp.net/scottgu/archive/2007/07/31/linq-to-sql-debug-visualizer.aspx

Probably the biggest programming model improvement being made in .NET 3.5 is the work being done to make querying data a first class programming concept.  We call this overall querying programming model "LINQ", which stands for .NET Language Integrated Query.  Developers can use LINQ with any data source, and built-in libraries are included with .NET 3.5 that enable LINQ support against Objects, XML, and Databases.

Earlier this summer I started writing a multi-part blog series that discusses the built-in LINQ to SQL provider in .NET 3.5.  LINQ to SQL is an ORM (object relational mapping) implementation that allows you to model a relational database using .NET classes.  You can then query the database using LINQ, as well as update/insert/delete data from it.  LINQ to SQL fully supports transactions, views, and stored procedures.  It also provides an easy way to integrate data validation and business logic rules into your data model.

You can learn more about LINQ to SQL by reading my posts below (more will be coming soon):

Using the LINQ to SQL Debug Visualizer

One of the nice development features that LINQ to SQL supports is the ability to use a "debug visualizer" to hover over a LINQ expression while in the VS 2008 debugger and inspect the raw SQL that the ORM will ultimately execute at runtime when evaluating the LINQ query expression.

For example, assume we write the below LINQ query expression code against a set of data model classes:

We could then use the VS 2008 debugger to hover over the "products" variable after the query expression has been assigned:

And if we click the small magnifying glass in the expression above, we can launch the LINQ to SQL debug visualizer to inspect the raw SQL that the ORM will execute based on that LINQ query:

If you click the "Execute" button, you can even test out the SQL query and see the raw returned results that will be returned from the database:

This obviously makes it super easy to see precisely what SQL query logic LINQ to SQL ORM is doing for you. 

You can learn even more about how all this works by reading the Part 3: Querying our Database segment in my LINQ to SQL series above.

How to Install the LINQ to SQL Debug Visualizer

The LINQ to SQL Debug Visualizer isn't built-in to VS 2008 - instead it is an add-in that you need to download to use.  You can download a copy of it here.

The download contains both a binary .dll assembly version of the visualizer (within the \bin\debug directory below), as well as all of the source code for the visualizer:

To install the LINQ to SQL debug visualizer, follow the below steps:

1) Shutdown all running versions of Visual Studio 2008

2) Copy the SqlServerQueryVisualizer.dll assembly from the \bin\debug\ directory in the .zip download above into your local \Program Files\Microsoft Visual Studio 9.0\Common7\Packages\Debugger\Visualizers\ directory:

3) Start up Visual Studio 2008 again.  Now when you use the debugger with LINQ to SQL you should be able to hover over LINQ query expressions and inspect their raw SQL (no extra registration is required).

Hope this helps,

Scott

크리에이티브 커먼즈 라이선스
Creative Commons License

'.NET > ADO.NET' 카테고리의 다른 글

ADO.NET for SQLite  (0) 2009/03/27
LINQ to SQL Debug Visualizer  (0) 2007/08/08
올블로그추천버튼 블코추천버튼 블로그뉴스추천버튼 믹시추천버튼 한RSS추가버튼 구글리더기추천버튼


이 포스팅이 도움이 되었다면 구글에서 관련 정보를 찾아 보세요 ^^


Trackback 0 Comment 0

Trackback : http://i-ruru.com/trackback/126 관련글 쓰기

2007/08/01 10:01

VS 2008 and .NET 3.5 Beta 2 Released

VS 2008 and .NET 3.5 Beta 2 Released

http://weblogs.asp.net/scottgu/archive/2007/07/26/vs-2008-and-net-3-5-beta-2-released.aspx




 

I'm very pleased to announce that the Beta 2 release of VS 2008 and .NET 3.5 Beta2 is now available for download.  You can download the Visual Studio 2008 product here.  You can alternatively download the smaller VS 2008 Express Editions here

VS 2008 and Visual Web Developer 2008 Express can be installed side-by-side with VS 2005.  .NET 3.5 Beta2 also includes a go-live license which allows you to build and deploy applications into production.

Very Important: Please read my "Installation Notes" at the bottom of this blog post for a few post-installation steps you must make to ensure everything runs well.  One of these steps fixes a side-by-side issue we found with ASP.NET AJAX. 

Quick Tour of Some of the New Features for Web Development

Over the last few months I've written several blog posts that discuss some of the new improvements in this release.  Below is a quick summary list of several of them that I have already published.  This list is by no means exhaustive - there are a lot more things I haven't had a chance to blog about yet (stay tuned for more posts!):

VS 2008 Multi-Targeting Support

VS 2008 enables you to build applications that target multiple versions of the .NET Framework.  You can learn more about how this works from my blog post here:

VS 2008 Web Designer and CSS Support

VS 2008 includes a significantly improved HTML web designer.  This delivers support for split-view editing, nested master pages, and great CSS integration.  Below are two articles I've written that discuss this more:

ASP.NET also has a new <asp:ListView> control that I'll be blogging about in the near future.  It delivers very flexible support for data UI scenarios, and allows full customization of the markup emitted.  It works nicely with the new CSS support in VS 2008.

ASP.NET AJAX and JavaScript Support

.NET 3.5 has ASP.NET AJAX built-in (and adds new features like UpdatePanel support with WebParts, WCF support for JSON, and a number of bug fixes and performance improvements).  VS 2008 also has great support for integrating JavaScript and AJAX into your applications:

I will be doing a blog post in the next few days that talks more about some of the ASP.NET AJAX specific improvements, as well as how to upgrade existing ASP.NET AJAX 1.0 applications to use them.

Language Improvements and LINQ

The new VB and C# compilers in VS 2008 deliver significant improvements to the languages.  Both add functional programming concepts that enable you to write cleaner, terser, and more expressive code.  These features also enable a new programming model we call LINQ (language integrated query) that makes querying and working with data a first-class programming concept with .NET. 

Below are some of the articles I've written that explore these new language features using C#:

Data Access Improvements with LINQ to SQL

LINQ to SQL is a built-in OR/M (object relational mapper) in .NET 3.5.  It enables you to model relational databases using a .NET object model.  You can then query the database using LINQ, as well as update/insert/delete data from it.  LINQ to SQL fully supports transactions, views, and stored procedures.  It also provides an easy way to integrate business logic and validation rules into your data model.  Below are some of the articles I've written that explore how to use it:

I'll be adding several more articles to my series above in the weeks ahead.  I think you'll find that LINQ to SQL makes it dramatically easier to build much cleaner data models, and write much cleaner data code.

Lots of other improvements

The list above is only a small set of the improvements coming.  For client development VS 2008 includes WPF designer and project support.  ClickOnce and WPF XBAPs now work with FireFox.  WinForms and WPF projects can also now use the ASP.NET Application Services (Membership, Roles, Profile) for roaming user data. Office development is much richer - including support for integrating with the Office 2007 ribbon.  WCF and Workflow projects and designers are included in VS 2008.  Unit testing support is now much faster and included in VS Professional (and no longer just VSTS).  Continuous Integration support is now built-in with TFS.  AJAX web testing (unit and load) is now supported in the VS Test SKU.  And there is much, much more...

Important Installation Notes - PLEASE READ!

There are two important things you should do immediately after installing VS 2008 and .NET 3.5 Beta2:

1) You should download and run this batch file.  This takes only a few seconds to run, and fixes an issue we found earlier this week with the version policy of System.Web.Extensions.dll - which is the assembly that contains ASP.NET AJAX.  If you don't run this batch file, then existing ASP.NET 2.0 projects built with ASP.NET AJAX 1.0 and VS 2005 will end up automatically picking up the new version of ASP.NET AJAX that ships in .NET 3.5 Beta2.  This will work and run fine - but cause you to inadvertently introduce a .NET 3.5 dependency in the applications you build with VS 2005.  Running the batch file will change the version binding policy of the new System.Web.Extensions.dll assembly and ensure that you only use the new .NET 3.5 ASP.NET AJAX version with projects that you are explicitly building for .NET 3.5.

2) If you have ever installed a previous version of "Orcas" or VS 2008 on your machine (either Beta1 or one of the CTP versions), you need to reset your VS 2008 settings after installing Beta2.  If you don't do this, you'll have an odd set of settings configured (some windows will be in the wrong place), and you'll potentially see some IDE performance slowness.  You can reset your settings by typing "DevEnv /resetsettings" on the command-line against the VS 2008 version of the IDE:

Summary

There are a lot of new improvements and enhancements that I hope you'll find really useful with VS 2008 and .NET 3.5.  Stay tuned to my blog over the next few weeks as I'll be posting more about some of the new features and how to get the most out of them.

Thanks

크리에이티브 커먼즈 라이선스
Creative Commons License
올블로그추천버튼 블코추천버튼 블로그뉴스추천버튼 믹시추천버튼 한RSS추가버튼 구글리더기추천버튼


이 포스팅이 도움이 되었다면 구글에서 관련 정보를 찾아 보세요 ^^


Trackback 0 Comment 0

Trackback : http://i-ruru.com/trackback/120 관련글 쓰기