Does SubSonic 3.0 SimpleRepository support SQL Server Compact Edition? - subsonic

Can someone confirm one way or the other if SubSonic 3.0's SimpleRepository supports SQL Server CE (Compact Edition)? I tried it and failed but I'm not sure if I'm doing something wrong or if it's not supposed to work.
I'm finding conflicting information online. The SubSonic documentation page says that SQL Server CE is supported in SubSonic 3.0. However this (fairly recent) Stack Overflow question says that it isn't supported
So which is it? If it is supposed to work, does anyone happen to have a pointer to some working code so I can figure out what I'm doing wrong? Thanks!

We use System.Data.Common and from what I understand SQLCE understands System.Data.Common - you just have to be sure you specify that driver in your connection string (and I don't know what that is).
We don't have any T4's built for it yet, but for SimpleQuery it should "just work". What's the error?

Related

import issues from legacy issue tracker to Gitlab CE?

What's the dealio on importing data from a legacy issue tracker system into Gitlab CE?
Do tools exist for this? Schemas? Suggestions?
Please notice that this is really a legacy issue tracker system. It predates bugzilla, and runs on an old IIS server and SQL Server 2000).
(Say whatever you want about this setup, but it's nothing we haven't already heard.)
You should be using the REST APIs to create your migrations.
Generally recommendation questions are off topic, so if I mention
there is a redmine issue importer and there are issue tracker issues on the gitlab ce issue tracker requesting this. This sounds like a good kind of thing to make as a community contribution if it's a popular tool.
But if it's not, and you're the only person in the world using your tracker, you probably will want to study the python based redmine issue importer it may server as an example for you to write your own REST-api based tool that reads your db and creates the Gitlab Issue Tracker issues. You don't want and don't need to know the Gitlab side's PostGres schema. It will change over time anyways.

Facing export issue after upgrade site from Kentico 8.2 to Kentico 9

I have upgraded Kentico site from Kentico 8.2 to Kentico 9.0, everything was looking pretty and working smoothly. But when I tried to export my own site, I got Exception with following statement.
“Conversion failed when converting from a character string to unique identifier”.
From your current description it is impossible to tell what might have broken. The exception you are getting is very common and you can find many examples of reason why it happens here in SO.
However, what might be related to your question in Kentico is whether the upgrade you performed was successful. Try checking CMS_SettingsKey table for following KeyNames
CMSDBVersion
CMSDataVersion
Are they both set to 9.0? If not, the upgrade was not entirely successful. If yes, then there is some other issue within the data in your database for which we would need much more information.
Some of the class form definitions haven't been upgraded properly. Try the upgrade again and make sure you perform all the Steps after upgrade, especially "Running the website - First request".

Conflict between OpenLDAP's libldap and Oracle's occi library

I'm writing a small tool to do some checks on the data from one Oracle database and on LDAP.
Thinking of performance I've decided to go with C/C++, therefore I'm using the open ldap library and the oracle occi library. Now putting together the wrappers for each library I noticed that functions from the ldap library fail if I link my program with the oracle library. Going further I see there are functions defined in the oracle library with the same name as they're defined in the openldap library.
Now I did not find much on web on this issue, some advise to link first with the ldap library but that doesn't do it, it doesn't fail on init() anymore but it doesn't go past connect().
I'm doing the developing on Linux (Ubuntu), and the libraries I use are all C.
Does anyone have any advice on this? There must be someone else that have had this issue.
Any thoughts are most welcomed.
Many thanks
Unless these functions are also API entry points you should be able to make it work by linking to both as shared libraries. Then each library will use its own version of the function and you don't get to see either version unless you call it yourself.
If the functions concerned are API entry points, i.e. LDAP APIs, there is something pretty odd going on.
You can resolve this issue by specifying "-lldap -llber" in linking stage.
Ensure that you have specified oracle libray at the end in the linking stage. ldap has dependency with liblber.

Subsonic: Is it possible to use the oledb provider

When I set up a connection for Subsonic 3.0.0.4 to connect to an Oledb sql provider using the T4 Templates I get the following error: Keyword not supported 'provider' Can Subsonic access a database using OleDb? If so. How?
Which dbms do you want to use?
Since SubSonic 3 uses System.Data.Common for accessing data, it should be possible to use it with every dbms that supports ADO.net (I belive there is a OleDbProvider for ado).
But if you use a DBMS that is not supported by subsonic you have write your own DataProvider and an OleDb.ttinclude template file.
The beste starting point is to look at an existing provider:
https://github.com/subsonic/SubSonic-3.0/tree/master/SubSonic.Core/DataProviders/MySQL
https://github.com/subsonic/SubSonic-3.0-Templates/tree/master/TemplateProviders
Creating your own Provider shouldn't be to hard at all. I would use a Copy&Paste approach from an existing provider and modify everything that causes some errors.
I would use the standard SQL to LINQ Entity spaces but I have to connect to a database for a client through their application server's specific OLEDB provider. Apparently it's doing extra work after the standard OLEDB SQL commands are sent to the server. So LINQ as far as I understand is out. I built my own CRUD classes, but it's a pain doing it this way. I just want a tool that can build the standard classed so I don't have to create the layer myself.
It's MS SQL Server 2005 on the other end.

Can I run Subsonic 2.1 and 3.0 side by side

I have a small code base using Subsonic 2.1 in my project. I would like to start using Subsonic 3.0 as soon as possible. But I don't currently have resources to convert the 2.1 implementation. Is it possible to start using 3.0 for new code and leave the 2.1 code running. Will I have any special conflicts. Anything I should watch for?
I'm pretty sure you can't do this. There would be too many conflicts with the naming of the namespaces and classes.
Very similar question asked a couple of days ago at
use subsonic 2.x and 3.x in the same project
No, you can't run them side by side. Depending on what you're using (ActiveRecord/RepositoryRecord and Query/SqlQuery) migration difficulty will vary. If you're using RepositoryRecord and only SqlQuery queries the migration to the LinqTemplates is not that complicated.

Resources