I have been using subsonic with MS SQL 2005 for about a year now. For those of you who have moved to SQL 2008, is subsonic compatiable with that? Have you had too many issues with SubSonic with SQL 2008? Just trying to get a feel if I should upgrade to SQL 2008 at this time or not.
Thanks
I've not used SQL2008 myself, but I know there is still a bug in SubSonic 2.1 and 2.2 in handling the new date only and time only data types (it sees them as strings).
SubSonic works great with Sql Server 2008. If you are at all worried you can download the source and add a reference to the project so that you can fix any errors that come up.
If you download 2.2(which should have been named 2.1.1 as it is a minor bug fix release) you will notice that the Sql Server 2008 provider inherets from the 2005 provider and I believe that it only overrides one function meaning that there is very little that differs between them though you could always fix anything you need to fix if you ever run into a bug(I haven't run into anything in my development and I use SQL Server 2008)
I have used (well, am using) SubSonic with both MSSQL 2008 and 2005 in a current project. Same code base is used on both MSSQL 2005 and MSSQL 2008. I have not run into any issues yet (that is, not any issues only occurring on one of either platforms).
I believe SubSonic does not support any features exclusive to MSSQL 2008, but if you're migrating from 2005 anyways, this shouldn't be a problem.
Subsonic doesn't support all new data type of MSSQL 2008.
for exaple, i've got a problem with Geography
Related
I have written code in C# .net framework 4.5. Now, the client says he wants it in Windows CE. So I have downloaded VS 2008 and created a smart device project with Windows CE option and framework 3.5. I have used the files as is and build. The solution gives lots of error on build.
Eg of error is - Background worker in .Net 4.5 is not supported in WinCE 2008 project
Any pointers how this can be achieved? Its a huge code so rewritting whole code will cost a lot. Quick pointers are highly appreciated.
I have tried removing the references from old proj and tried including dll from VS 2008 dlls. E.g. System.Data.SQL is not present in 2008. Background worker is not present in VS2008
Check out the Smart Device Framework, it provides a port of the Background Worker for the .NET Compact Framework. It may give you some alternatives for other pieces of code you're porting over:
https://github.com/ctacke/sdf
The missing SQL Server library is a difficult one to answer without more details, but you will need to decide on how you wish to access data. Is there going to be a local database or will you need to retrieve data from the SQL Server database through some type of service?
SQL Server Compact and SQLite are popular databases used on Windows CE, so those are some options if you need to create some sort of local database.
I have a couple of Projects created in visual basic 6 with oracle databases. I want to upgrade these proejects to visual studio 2012 and use TFS version control. I have read that first I need to upgrade to Visual studio 2008 and then to Visual studio 2012.
Before going ahead with the upgrade ( I need to install Visual studio 2008 as well) I want to make sure this is a realistic approach. So
1. Does converting a vb6 project to VS 2012 ok or I will have to make a lot of changes to make things work?
2. After upgradation would I be able to use TFS for the projects?
TL;DR - yes, you'll need to make lots of changes regardless of how you choose to migrate. TFS question seems irrelevant to me. If you're setup to use TFS for projects, you can use it for these after upgrade as well.
The only reason to consider a 2-step upgrade that includes VS 2008 is that was the last version that included the migration tool built-in (ie, free). As others alluded to, those tools don't make pretty code but a mashup of VB6 and .Net. After trying a few times, I now personally find it simpler and more robust to recreate a new .Net version from scratch, but using the VB6 code as a template. I copy and paste as practical and then do Find/Replace to catch the majority of errors/warnings and then deal with all the others individually. If I have to convert another project, I may use 2008 once just to see what kind of issues the original code had or if there are any unusual situations/controls I'll need to deal with, but I would still start a new 2013 project from scratch. That gives me a better opportunity to improve it as well. You'd be replacing all the connecting code to Oracle anyway. I'd been using OO4O and moved to ODP.NET. If you used 2008, you would have to move to at least 2010 to use the latter in managed mode, which is great not having to load Oracle Client on each machine.
I'd be wary of upgrading VB 6 to VB.net using the automated tools. I did it back in the day (around 2003) when .net was just starting out and my memory is that it wasn't a pleasant experience.
The code produced by the upgrade wizard is a nasty mix of old VB conventions trim, instr and .net conventions. We also had a bunch of weird bugs. Sorry it was a long time ago and I can't remember any details. Only that we did it once for a small number of components, around 6 or 7 activex dll's. That experience was bad enough that we decided it wasn't worth the pain.
We kept the VB 6 code in service until it was re-written as part of a larger push to modernise the codebase.
If you do decide to upgrade then the output is a standard visual studio project that can be source controlled in TFS just like any .net project.
If you reason for upgrading to just to use TFS then take a look at the MSSCCIProvider. This allows you at hook TFS in to the VB6 IDE
I am doing something very similar and did develop a tool to assist with the designer portion of the conversion. It parsers the VB6 file and creates designer code for .NET.
The source is here.
https://github.com/rdejournett/VBtoNET
The only thing I was not able to solve is that controls within tab pages have really wierd X locations like -60000. So I parse those to 0. You'll have to move them to the right place.
I've just downloaded and started to use VS community 2013, and up to now, I'm quite impressed with it. I also have VS 2012 professional on my machine, and I'm getting little short of space on my hard drive. Would you suggest removing VS2012, and is it safe to do so?
If you have no legal / license issues with the fact to use "Community" rather than "Professional" license, AND if you don't have coworkers using strictly VS2012 I think you could reasonably uninstall VS2012.
For my second assumption, 2013 is pretty "retro compatible" with 2012, but it's better to keep homogeneous environments between developers.
I think the uninstall itself should go very well (so far never had issues myself with that kind of things, even with CTP or RC releases), but if you are afraid you can do a restoration point or some kind of backup of system before uninstall.
In my opinion, there's no point anymore in switching to VS 2013, because VS 2015 RTM will soon be available - it is currently in CTP 6 and you can get it for free.
The great thing about VS 2015 - apart from all the new features like e.g. C# 6.0 support - is that you get the full version for free, not just a community edition with reduced functionality.
I am using the standalone version of SSDT with VS 2012 shell and I was wondering if there is any point for me to upgrade to VS 2013 Express.
Are they practically the same thing and updated through different channels or the one integrated in VS 2013 has better capabilities?
They are exactly the same thing, updated through different channels. There's more information on supported versions in this blog post by Jill McClenahan, but right now SSDT has identical functionality in both. The benefit of upgrading is that the Express version has nicer integration with other tools and services such as cloud services, other programming languages etc. If you just care about database development that might not make much difference.
I have a project built around Subsonic 3.0.0.3 and have run into the dreaded medium trust issue, can anyone tell me is there a way I can mod the code myself to get this working or what the expected timescale for 3.1 version is? Its looking increasingly like I will have to ditch subsonic to get my system running
Regards
Mike
No timeframe for SubSonic 3.1 (or 3.0.0.4), but here are the current plans: http://groups.google.com/group/subsonicproject/browse_thread/thread/caae09418ce4d975/
The SubSonic Google discussion group is the best place to find out about the current development happenings for SubSonic.
Short answer, as soon as possible.
Long answer, there's a number of things planned for 3.1 these include (but are not necessarily limited to):
Oracle support
MediumTrust support
Automatic mapping of collections in SimpleRepository
These are all in development right now but before they become the main focus we need to get version 3.0.0.4 out the door with fixes for a lot of the outstanding issues listed on github. There's also a lot of more boring work going on behind the scenes which should make regular and stable releases easier.
The current release schedule is:
Version 3.0.0.4 - 22nd March 2010
Version 3.1 - 22nd May 2010