Comments (14)
I'll take this if someone would assign it.
from allready.
I noticed while testing the beta8 upgrade that a few things aren't working when connected to a SQL Server database (instead of the In Memory Database). For example, the SampleData crashes with a "Cannot insert explicit value because IDENTITY_INSERT is OFF"
from allready.
@shawnwildermuth we can't assign issues to anyone that isn't part of the core commit team. Of the issues you commented on, just add a comment to say "I've got this", and that helps us track it.
If you are working on all three, just edit your comments :)
from allready.
Will do.
from allready.
I'm running into this when 'upgrading' to Azure.
The issue come in that we're trying to set the Id Property which i is an Identity.
A work around for this is surround the SaveChanges method with a SQL Statement that turns on and off identity_insert.
dbContext.Database.ExecuteSqlCommand("SET IDENTITY_INSERT [dbo].[Resource] ON");
dbContext.SaveChanges();
dbContext.Database.ExecuteSqlCommand("SET IDENTITY_INSERT [dbo].[Resource] OFF");
The other alternative is not to set the Value for Resource.Id
from allready.
The whole DB generation/migration stuff is a bit of a mess with some mixed metaphors (and sample data includes keys for example). I need to see how much of it will work with InMemory store (which may just complicate matters) before I rip it all out, but I'm definitely going to remove Schema attributes (e.g. [key] since we're already specifying them in the Context schema generation. I may need to rebuild the migrations afterwards, but hopefully that will be the last time (unless RC/RTM break them as they've been doing every build).
Any objections before I do a big change to simplify it all? (should only affect the internal database/context changes, no external changes are necessary (e.g. no entity shape changes are necessary at this point))?
from allready.
Please do simplify. I think everyone is using InMemory right now (including the staging site on Azure) so having to rebuild the migration shouldn't be an issue. Now is the time to clean it up IMO
from allready.
@dpaquette is the simplification allowing for Azure hosting easier?
from allready.
@shawnwildermuth sorry I don't understand the question. Let's chat in person if we happen to be in the same room today
from allready.
These changes were merged. Is this open on purpose?
from allready.
I think staging still runs off the in memory version.
from allready.
Are we staging directly in an AzureWebsite? If so, we'll need third connection string for that server. I'll need to work with whomever is deploying it to make sure that they're overriding the EnvironmentVariables with the Azure connection strings. We don't want this to use the 'in-memory db' IMO.
from allready.
@shawnwildermuth Staging and Production are two different websites and two different SQL DBs.
And yes, we want staging running of a server.
@tonysurma and I will be getting that setup tomorrow morning, and then this issue can be closed (as you say, all the code has been merged.)
from allready.
in the last two days between me, @shawnwildermuth, @dpaquette and I am sure others we got this solved
from allready.
Related Issues (20)
- Virtual - registration phone number Check not given for 5 digit number
- Virtual- Home/Assign page Location Needs Data Validation HOT 1
- Virtual-Remove Button on Volunteer Page
- Virtual-Volunteer Home-Description Text
- Virtual-Change Contact Info
- Virtual-My Organization page - Location Field
- Virtual-Register A New organization
- Virtual - Server Error in '/' Application - A person cannot belong to more than one organization. - happens when Register New Organization with 'test' in Organization Name and all the other fields empty HOT 1
- Virtual - Server Error in '/' Application - Logged-in person not found or is an administrator - happens when Register New Organization with ยด in Organization Name and all the other fields empty HOT 1
- Virtual - CheckinResource - Many chars in Quantity gives an error messages that stretches the webpage a long way to the right HOT 1
- Build Issues with 37833fcf2ea4d1f54d0e846c78ff79b307509809 HOT 1
- NETSDK1059 warning HOT 1
- AllReady.ScenarioTest Issues HOT 13
- Gulp 3.9.1 Issues with Node 10 HOT 4
- Campaign Start/End Date does not appear correctly on Admin/Event/Create page HOT 2
- Error when signing up to the mail list HOT 3
- Is This Repository still maintained?? HOT 7
- Visual studio problems to run C/C++
- Is this repo maintain so far? HOT 1
- Idempotency Issue with SMS sending function: Add duplicate message detection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from allready.