Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database #2

Open
darklord1807 opened this issue Apr 23, 2017 · 3 comments
Open

Database #2

darklord1807 opened this issue Apr 23, 2017 · 3 comments

Comments

@darklord1807
Copy link

Hello

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

Thanks,

@MichaelaIvanova
Copy link
Owner

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,

@NewBabyFace
Copy link

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."}

@MichaelaIvanova
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants