Monthly Archives: January 2008

Speaking of Ent. Framework providers – what about Access/OleDB?

My last post was about LINQ and EF Data Providers, which made me think of this.

I received an email recently asking if I knew of anyone writing an Entity Framework provider for Access.

I don’t happen to know of any.

However there’s a reason.

In the forums, there is a post from July where Danny Simmons explained the hurdles with a possible Access provider:

The OLE-DB ado.net provider has not been extended to support the entity framework, and we do not currently have plans to do so in our first release.  Further, this would be a fairly difficult effort because OLE-DB doesn’t provide enough information in general to translate CQTs (canonical query trees–the entity framework intermediate query representation) to a particular back-end query syntax.  So, while it would be possible to write an Access provider which would translate from CQTs to the particular query syntax that access uses, we don’t have an access-specific ado.net provider, and the general OLE-DB provider would not be able to do the job.

We have done some internal prototyping of how Access and the entity framework might work great together in the long-run, but those were just explorations, and we will not have direct support for Access in the first release of the entity framework.

 

Should database providers be targeting LINQ or Entity Framework?

People are always asking “when will I be able to use LINQ against databaseA or databaseB?” and “when will I be able to use Entity Framework against databaseA or databaseB?”

In my mind this is the same question, though most who are asking don’t realize it. Why?

An Entity Framework provider gets all of the benefits of the Entity Framework and also gets LINQ for free by way of LINQ to Entities.

If a database vendor wants developers to be able to perform LINQ queries against their database, it’s not a stretch to think that they might also want developers to be able to use their database within the Entity Framework.

Why write two providers (a LINQ provider AND an EF provider) when they can write just an EF provider and with it, get LINQ capabilities as well?

An added benefit is that with Entity SQL, it is possible to add provider specific functions.  So when a developer reaches a wall trying to write a LINQ query, the can just step back and use Entity SQL for those cases.

I’m definitely using LINQ to SQL where it makes sense for me. In fact, I’m waiting for a sysadmin to throw .NET 3.5 on my client’s web server so I can deploy my first production solution that uses LINQ to SQL! 🙂

But for any other db’s, I’m not waiting to see who is writing LINQ providers for their databases, but who is writing EF providers (here’s a current list, by the way).

Seven Days focus issue on High Tech in Vermont (and Career Jam)

This weeks Seven Days features Vermont’s Tech businesses and the Vermont 3.0 Tech/Creative Career Jam that is happening on Saturday (Jan 26) in Burlington. There are 50 companies that are registered as exhibitors for the career portion of this – most of them are looking for some type of technical workers – engineers, programmers and more. There was only space for 50 and there’s a long list of companies that are begging to get in as well.

The issue talks to a number of these companies and also surveys the state of the industry and career opportunities.

So if you aren’t local and can’t pick up Seven Days in print, you can read all of these articles in the paper.

Seven Days home

Seven Days TechBiz Issue starting point

  • VT Tech Biz Issue: Is Vermont’s “brain drain” reality or rhetoric : Title speaks for itself
  • VT Tech Biz Issue: Sensor and Sensibility : Microstrain – Very successful tech company in Vermont
  • VT Tech Biz Issue: They’ve Got Game : Champlain College’s Innovative Video Game course
  • VT Tech Biz Issue: Soft…where? : A closer look at five of Vermont’s software companies
  • VT Tech Biz Issue: Good to the Last Byte : Even the food writer gets in on the trend
  • VT Tech Biz Issue: Clicks to Licks : Guitar Hero!
  • VIDEO: The Campus Question: St. Michael’s College
  • VIDEO: Stuck in Vermont: Dealer.com : Video Blogger Eva Solberger visits one of Vermont’s hippest, fastest growing software companies
  •  

    Vermont IT Jobs: Web Developer in White River Junction, VT

    (note that RSG is also currently looking for a web developer with less experience required than the position below)

    RESOURCE SYSTEMS GROUP is a multi-disciplinary, employee-owned consulting firm specializing in the planning, analysis, and management of business, infrastructure and natural resources. We serve clients who share our belief that high-quality, objective analysis is a prerequisite to resolving complex problems. More than just analysts, scientists, and engineers, we’re communicators – our study results are clear, concise, and directly applicable to a client’s particular questions and challenges. Our solutions are creative and grounded by 20 years of experience with clients as large as federal government agencies and Fortune 500 companies or as small as neighborhood interest groups and local municipalities.

    Senior Associate – Software Development
    White River Junction, VT or Chicago, IL

    This position involves working with the Technology Solutions Practice, supporting the firm’s software and analysis needs. The primary focus will be developing fully dynamic web-based solutions from interface to business logic to back end database design. Managing clients’ expectations throughout the project lifecycle is a key responsibility.  We are looking for someone who is organized, analytical, and experienced in delivering best practice solutions to join our team.

    • Minimum bachelor’s degree with emphasis in computer science or a related field
    • Minimum 3 years experience working on large client projects.
    • Demonstrated software development, programming, design and technical presentation skills.
    • Outstanding written and oral communication skills.
    • Practical experience in the following areas:
    o Web Development in HTML and CSS
    o Database programming in SQL
    o Modern object-oriented programming (e.g. C#, VB.Net, Java)

    This position may be located either at White River Junction, Vermont or Chicago, Illinois.   Telecommuting from another location will be considered for the right candidate.
    Please send resume and cover letter to Recruiting Director at employment@rsginc.com and indicate Senior Associate Software Development in the subject heading.
    Recognized as one of the “Best Places to Work in Vermont” and recipient of the 2007 Dean C. Davis Outstanding Business Award, RSG employees enjoy excellent benefits, flexible hours and opportunities for advancement.
    We are an equal-opportunity/affirmative action employer.
    Please visit www.rsginc.com for more information on Resource Systems Group.

    New Burlington PHP User Group! Next meeting is Wed, January 30th

    Burlington, VT PHP Users Group Meeting

    RSVP Required

    When: Wednesday January 30th, 2008, 5:30 pm – 7:30 pm
    Where: Brown & Jenkins Coffee Roasters, 91 Ethan Allen Drive, South Burlington, VT 05403

    Topics 

    Bradley Holt will be giving a presentation on developing a web application using Zend Framework. Bradley Holt is founder and web developer for Found Line, a local design and development studio which has used Zend Framework in several recent projects. He also works as a software developer for a local non-profit. Before starting Found Line he worked as computer trainer teaching a variety of subjects including Java/JSP, ASP.NET, and PHP.

    Other topics will include:

    • What tools do you use for your development environment?
    • What subjects and presenters would you like to see in future?

    Refreshments – coffee and snacks – will be provided, and you’ll have the chance to network and connect with fellow PHP developers.

    To Participate

    1. RSVP by email to Rob Riggen <rob@riggen.org>.
    2. Sign up for the Burlington, VT PHP User Group list on Google Groups.
    3. Forward this link to anyone else you feel would be interested in the topics above.

    Mutable and immutable anonymous types in VB

    Bill McCarthy explained this to me in an email.

    He wrote about it in this excellent article in Visual Studio Magazine “Drill Down on Anonymous Types“.

    But it still bit me in the ass!

    So I am stamping this into my memory:

    in a queryresults in
    …select cust.CustomerID.cust.CompanyName…  Immutable anonymous type
    …select New With {
                                    .CustomerID=cust.CustomerID,
                                    .CompanyName=cust.CompanyName} …
    Mutable anonymous type
    …select New With {
                                 Key .CustomerID=cust.CustomerID,
                                 Key.CompanyName=cust.CompanyName} …
    Immutable anonymous type
    Direct creation of object 
    New With {
                     .CustomerID=cust.CustomerID,
                     .CompanyName=cust.CompanyName}
    Mutable anonymous type
    New With {
                      Key .CustomerID=cust.CustomerID,
                      Key .CompanyName=cust.CompanyName}
    Immutable anonymous type

    And just in case someone who really needs this stumbles on this post, two clarifications:

    1. All anonymous types are immutable in C#.
    2. Mutable means changeable, editable. Immutable means written in stone.

    Am I a web site or a web app project: CodeFile vs. CodeBehind

    I accidentally opened up a web application project as a website. That’s not too hard to do. Just say you want to open a web site and point to the folder. It had been a while and I forgot that it was a WAP.

    So I’m working on a web page and double click on a control and find myself in the markup with a new script tag and the .net code for the click event of the control. That wasn’t good considering I already had some nice event handlers for that control in my code behind.

    I spent a lot of time going back and forth trying to figure out why I couldn’t get to my code behind.

    I even remembered having this problem in the early days of Web App Project and the solution was to “convert to a Web Application Project” from the context menu in the solution explorer. But this option wasn’t available.

    I created a new web site and looked at the page directive and noticed that in the new website the parameter pointing to the code behind file was called CodeFile, but in my old site it was CodeBehind. Wierd.

    So with that clue I googled those two words, came across Steve Smith’s blog post about the opposite problem and realized my mistake!

    Duh. 🙂

    Danny Simmons is providing guidance for dealing with EF and Web Services

    It seems to me that Danny Simmons must be working on v2 of Entity Framework.

    The posts he has written in the past week are examples of things that would probably have been in V1 had they had the time and resources. Now they are winding down v1, building up the team and thinking about v2.

    Danny has written three blogs posts filled with really handy extension methods for entity framework (and LINQ to Objects) [here’s the third which contains pointers to the first two] and now he is building a state bag for dealing with getting  entities across boundaries SOA style (i.e. web services and dealing with the limitations of XML serialization – something many of us have been writing about for a while).

    I”m really pleased to see this coming out of Microsoft (although what happened to whitepapers? ;-)). I have come up with my own methods (some with help from Danny and some on my own) but it’s always a little unnerving when you are just making your best guess at what they might have planned for.

    Months ago I started a thread on the MSDN forum about this issue and it ended up being a 3 or 4 page thread because every time someone on the team said “well, just do this” I said “no – that doesn’t really solve the problem”. I was pretty relentless (thanks to all of the work I have done with web services and ws-* in the past) and finally Danny ended the thread with “okay, obviously there’s more we need to look at here.”

    Since then I have struggled to come up with disconnected solutions that deal with binary and xml serialization and presented them at a few conferences. This was with Beta2 and there are some new goodies in Beta3 that will ease the pain somewhat but it’s still pretty complex.

    For the last week or so, Danny has been writing a series of blogs where he’s using his indepth understanding of entities, object services, statemanagment, etc. to build a “state bag” for transferring the whole kit ‘n caboodle across processes. It’s impressive as hell but there was something bugging me that I was dwelling on, and Roger Jenning’s pointed it out on his blog as well.The answer to “why is ObjectContext not serializable?” is that it’s big and it would not be scalable. And no, I’m not suggesting that Danny forgot this. 🙂 Which is why I’m biding my time to see how it comes out.

    I’m assuming that Danny’s state bag is a proof of concept for a v2 solution (though he has been clear that because of some obvious issues with interop, it just may not go in.) And as he suggested in today’s post, readers (like me) are probably “chomping at the bit” to see how he does the object context part so that we can see how streamlined it is.

    Most people have no clue how deep Entity Framework goes and what the ADO.NET team is setting up for us to be able to do with it down the road. It’s probably clear by now that I’m really excited about Entity Framework and I’m struggling to keep up with all of the great ideas that people are trying out as evidenced in the forums.

    So while we’re all looking forward to the release of Entity Framework, I’m already starting to get excited about what’s going to come in V2.