MichaelaIvanova/ReaLocate

Database

Opened this issue · 3 comments

Hello

I am new to asp.net. Kindly advise how should I get the database for this project?

Thanks,

Hi,
You should change the connection string in the web.config (in ReaLocate.Web project) in order to connect to your MS SQL server (more info https://docs.microsoft.com/en-us/aspnet/mvc/overview/getting-started/introduction/creating-a-connection-string). Once you start you project and register the first user for example, the db should be initialised, and the db will be auto filled with some sample data ( more infor see https://github.com/MichaelaIvanova/ReaLocate/blob/master/ReaLocate.Source/Data/ReaLocate.Data/Migrations/Configuration.cs)

Cheers,

Hi
Can Attach Data base plz
always have error Error.
An error occurred while processing your request.
in
public IQueryable GetAll()
{
return this.realEstates
.All()
.OrderByDescending(c => c.CreatedOn);
}

innerException

{"A null was returned after calling the 'get_ProviderFactory' method on a store provider instance of type 'Glimpse.Ado.AlternateType.GlimpseDbConnection'. The store provider might not be functioning correctly."}

Hi,
It's code first, you should only change your connection string. Glipse is just a tool to monitor app performance you can try to remove it locally from package.config