Just wanted to get the groups feedback on Linq2Sql.
How does everyone create the DataContext for their DB?
1) Do you use the IDE and generate your custom .dbml (which also
generates all your DTO's)?
2) Do you use a generic DataContext object and just .GetTable<>() and
create your DTO's by hand?
Just wanted to get the groups feedback on Linq2Sql. How does everyone create the DataContext for their DB? 1) Do you use the IDE and generate your custom .dbml...
Hey Derik, Here we've run into some design issues with just the designer, and some testing issues with just .GetTable<>() so we tend to take generating...
I am not sure what u mean by 'context'? Are you talking about the DataContext object? Or the context of the application that Linq2Sql is being used. Derik ...
... Just curious, is this a big project? My impression of the designer-based codegen was that it would have the same scalability and maintainability of things...
Jimmy, I cannot speak about the scalability of designer. I would assume that the performance would suck if you had a ton of tables, but remember, you are only...
... designer-based codegen was that it would have the same scalability and maintainability of things like strongly-typed datasets. < Just don't use the...
I agree with Ian. Although, I'm doing talks on LINQ to Entites I make sure to wash my hands afterwards. But, I don try to be honest with the attendees and...
Ayende, From the first time I saw LINQ to Entities, I thought that the Mapping layer/framework had real promise. IMHO, that is really the brightest area of...
Don, Sorry, but I just can't believe that the mapping stuff is so important. This is _easy_. Here is a simple example: ...
Ayende Rahien
Ayende@...
Mar 15, 2008 12:02 am
There is a lot more to mapping than simple one to one relationships and simple converting of datatypes. There is the whole impedence mismatch thing. That's...
Can you explain more? I don't think that I follow what is the "lot more" part....
Ayende Rahien
Ayende@...
Mar 15, 2008 3:26 am
I think what Don is saying if I understood him correctly is that a DTO could be fairly complex and contain aggregated data of multiple entities or fields that...
And I'll repeat what I am saying, I don't see the complexity here. Mapping data from source to destination is a trivial exercise, Take a look at how I do it...
Ayende Rahien
Ayende@...
Mar 15, 2008 5:43 am
Oren, I'm not sure I accurately depicted what Don is describing and I must admit I've never even heard of Rhino ETL. I'll check it out. John ... -- John...
I am currently rewriting an existing app but re-using the same database tables, so in this scenario I'm just using the drag and drop mojo of the IDE to create...
... and ... I use the designer and then add partial classes where I need them. I don't necessarily use the generated classes as DTOs. Since I rarely need all...
If my entities have something like this: [Column(Storage="_Title", DbType="NVarChar(200) NOT NULL", CanBeNull=false)] public string Title { get { return...
Jimmy, The point you bring up is part of the reason i asked this question. However, you could NOT use the designer to create your classes and have the same...
... have the same ability to use Linq as well as have your ability to refactor. I'm crossing my fingers for Linq to NHibernate. One valid architecture might be...
Not out yet, and from my early impressions, it is going to be very invasive and very complex....
Ayende Rahien
Ayende@...
Mar 13, 2008 10:20 pm
Jimmy, I would love any and all help in this regard....
Ayende Rahien
Ayende@...
Mar 13, 2008 10:18 pm
Huh? Why ever not? The limitations of the Linq to SQL are a separate issue, I see no problem with having both...
Ayende Rahien
Ayende@...
Mar 13, 2008 10:18 pm
... solution. If I ... properties, it's not ... single ... don't want ... see Linq2Sql ... *some* ... iBatis, which ... Then I'd skip the designer, manually...