473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Questions on DLinq

1) Is it support other database other than SQL Server, such as Oracle,
Sybase?

2) How about the performance? Does it relay on reflections to bind the value
from databse to Entity object?

Thanks!
Nov 17 '05 #1
6 1380
Lei Jiang wrote:
1) Is it support other database other than SQL Server, such as
Oracle, Sybase?
To be discussed, I can't comment on that.
2) How about the performance? Does it relay on reflections to bind
the value from databse to Entity object?


It's my understanding the compiler (C# 3.0 compiler) generates code
which utilizes the attributes of the referenced assembly in the
project, and therefore does the reflection of the attributes at compile
time, rather than at runtime.

FB

--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Nov 17 '05 #2
Hi Lei,
From my understand of it the query expressions are compiled (or more

correctly: translated) into plain old SQL. I don't know the variant of
SQL output but since none of the big vendor implement SQL92 or SQL99 it
doesn't really matter. But in DLinq is not for SQLServer only.

Actually I'd say that it would work really well on MySQL since the Open
Source boys love their standards compliance.

Hope that helps,
Jan

Nov 17 '05 #3

I am currently working on an Oracle database and I want to try DLinq. I am
wondering if it could work.

"Jan Bannister (jancsharp.blogspot.com)" <ja***********@gmail.com> ????
news:11**********************@g44g2000cwa.googlegr oups.com...
Hi Lei,
From my understand of it the query expressions are compiled (or more

correctly: translated) into plain old SQL. I don't know the variant of
SQL output but since none of the big vendor implement SQL92 or SQL99 it
doesn't really matter. But in DLinq is not for SQLServer only.

Actually I'd say that it would work really well on MySQL since the Open
Source boys love their standards compliance.

Hope that helps,
Jan

Nov 17 '05 #4

Are you sure it does not use Reflection at runtime? I have tried some O/R
mapping library (such as NHibernate) and found that the reflection wastes a
lot of time.

"Frans Bouma [C# MVP]" <pe******************@xs4all.nl> ????
news:xn***************@news.microsoft.com...
Lei Jiang wrote:
1) Is it support other database other than SQL Server, such as
Oracle, Sybase?


To be discussed, I can't comment on that.
2) How about the performance? Does it relay on reflections to bind
the value from databse to Entity object?


It's my understanding the compiler (C# 3.0 compiler) generates code
which utilizes the attributes of the referenced assembly in the
project, and therefore does the reflection of the attributes at compile
time, rather than at runtime.

FB

--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------

Nov 17 '05 #5
Lei Jiang wrote:
Are you sure it does not use Reflection at runtime? I have tried some
O/R mapping library (such as NHibernate) and found that the
reflection wastes a lot of time.
not 100% sure, I only assume it won't use reflection at runtime, as it
already knows the stuff at compile time, so why not emitting it into
the code directly..

Reflection doesnt have to be that slow either, you can cache property
getter/setters reflected for example. Though nothing beats code
generation ;)

FB

"Frans Bouma [C# MVP]" <pe******************@xs4all.nl> ????
news:xn***************@news.microsoft.com...
Lei Jiang wrote:
1) Is it support other database other than SQL Server, such as
Oracle, Sybase?


To be discussed, I can't comment on that.
2) How about the performance? Does it relay on reflections to bind
the value from databse to Entity object?


It's my understanding the compiler (C# 3.0 compiler) generates code
which utilizes the attributes of the referenced assembly in the
project, and therefore does the reflection of the attributes at
compile time, rather than at runtime.


--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Nov 17 '05 #6
Lei,

Based on the document at (watch for line wrap):

http://msdn.microsoft.com/netframewo...qprojec_topic6

In the section titled "SQL Integration", it states:

To issue a query against a relational store, the DLinq implementation of the
LINQ pattern translates the query from its expression tree form into a SQL
expression and ADO.NET DbCommand object suitable for remote evaluation

So basically, its constructing a query that is sent to the server. I
can't imagine that they would not open this up to other data providers (as a
matter of fact, you could probably do it on your own with the bits that they
released).

It just so happens that they targeted SQL Server first (I wonder why,
haha).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Lei Jiang" <co**@263.net.NO_SPAM> wrote in message
news:uv**************@TK2MSFTNGP14.phx.gbl...
1) Is it support other database other than SQL Server, such as Oracle,
Sybase?

2) How about the performance? Does it relay on reflections to bind the
value from databse to Entity object?

Thanks!

Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Senna | last post by:
Hi Have a question about DLinq. The example code floating around looks like this: Northwind db = new Northwind(@"C:\...\northwnd.mdf"); var custs = from c in db.Customers where c.City ==...
3
by: Chiranjib | last post by:
I have the following queries/Observations about DLINQ. 1. I could not find any direct way of handling many to many relations. Suppose if User and Role are related by a join table UserRole then I...
0
by: Scott Nonnenberg [MSFT] | last post by:
This is our first official DLinq chat. We're still early in the planning and development stage for this very cool technology, so we can react to your feedback much more easily. Show up and tell us...
4
by: Brett Romero | last post by:
I've downloaded the DLINQ samples from Microsoft and have always been able to compile these in VS.NET 2005 Pro. I have a new project that I added DLINQ references to and put in a simlpe query. It...
0
by: Andrus | last post by:
I need to update natural primary key like Territories.TerritoryID column in northwind database. In pure ADO .NET this is easy. I can use ExecScalar to run UPDATE command on primary key. ...
0
by: Andrus | last post by:
How to create select columns list dynamically in DLinq ? I want to create something like Console.WriteLine("Enter list of columns to return, separated by commas:"); string list =...
19
by: Andrus | last post by:
I need to repeatedly execute same queries which returns single entity by id, like: Customer cust = (from c in db.Customers where c.CustomerID=="AIRBU" select c).SingleOrDefault(); DLinq...
9
by: Marc Gravell | last post by:
How to fix ? Write it the way that you know works... (i.e. the one you commented out), or write that parses the input string doing a Split on '.', and uses reflection to navigate the child...
2
by: Andrus | last post by:
I need to pass DLinq query to RDLDEsigner. RDLDesigner does not accept IQueryable<T>. It accepts SQL select statement in plain text format as data source. How to get SELECT statement which...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.