DbDriver options erro

Mar 2, 2015 at 1:22 PM
using System;
using System.Collections.Generic;
using Vita.Entities;
using Vita.Data;
using Vita.Data.MsSql;

namespace BookStore {
public static class BookStoreConfig {
public static BooksEntityApp App {get; private set;}

public static void Configure (string connectionString) {
  App = new BooksEntityApp();
 App.Init();
  var driver = new MsSqlDriver(MsSqlVersion.V2012);
  var dbSettings = new DbSettings(driver, MsSqlDriver.DefaultMsSqlDbOptions, 
      connectionString, modelUpdateMode: DbModelUpdateMode.Always);
 App.ConnectTo(dbSettings);
}
}//class
}

This code does not compile, something was changed in the dbdriver or dbsettins

Regards,
Coordinator
Mar 2, 2015 at 3:17 PM
what's the error? are you using sources from this site, or packages from Nuget?
Mar 2, 2015 at 3:22 PM
From nuget.

The error is that i cannot convert DbDriver to MsSqlDbDriver

Ruben Alves

De: [email removed]
Enviado: ‎02/‎03/‎2015 15:17
Para: [email removed]
Assunto: Re: DbDriver options erro [vita:584021]

From: rivantsov

what's the error? are you using sources from this site, or packages from Nuget?
Coordinator
Mar 2, 2015 at 3:26 PM
wait... if it's Books sample, how it ends up using nuget package?! Something is messed up with assembly references
Mar 2, 2015 at 3:29 PM
It is my application using examples from Books

Ruben Alves

De: [email removed]
Enviado: ‎02/‎03/‎2015 15:26
Para: [email removed]
Assunto: Re: DbDriver options erro [vita:584021]

From: rivantsov

wait... if it's Books sample, how it ends up using nuget package?! Something is messed up with assembly references
Coordinator
Mar 2, 2015 at 3:34 PM
If your app has several projects, check the references, most likely you have both versions of Vita package and different projects reference different package, and this causes the error. Look at reference paths (file path) in each ref.
Mar 2, 2015 at 5:30 PM
I uninstaled all packages and nothing, i closed Visual Studio and opened it again and every thing is ok, probably a VS caching bug.

Thanks.