No announcements
Found 3603203 threads
-
1 Votes
Validation rule to check for duplicate entity only fires when saving, not when adding the entity from the screen
I would like to write a validation rule that ensures that each business can only have one listing of any type in each category.Answered | 3 Replies | 3153 Views | Created by Mr Yossu - Monday, August 29, 2011 4:35 PM | Last reply by Mr Yossu - Sunday, October 2, 2011 2:44 PM -
1 Votes
Manually calling Screen/Entity validation
When selecting new rows on the screen, the SelectionChanged code below will cause the Table validation rule to check and you will get a red box ...Answered | 3 Replies | 6891 Views | Created by James EJ - Thursday, April 14, 2011 10:30 AM | Last reply by WilliamStacey - Saturday, May 7, 2011 11:48 PM -
0 Votes
Screen saves, but entity doesn't persist
An entity change not passing a validation check.Answered | 5 Replies | 1927 Views | Created by Lisa Guthrie [MSFT] - Tuesday, March 27, 2012 12:41 AM | Last reply by Lisa Guthrie [MSFT] - Wednesday, March 28, 2012 4:35 PM -
0 Votes
Strange behaviour when adding an entity.
This has actually been discussed several times in the forums and is an intentional design: Exclude entities with EntityState.Added / Deleted from query ...Answered | 2 Replies | 1267 Views | Created by DanielGilbert - Thursday, February 21, 2013 4:02 PM | Last reply by DanielGilbert - Monday, February 25, 2013 11:01 AM -
0 Votes
Adding data to Entities causes screen collection changes
// you can even save the customer separately from the screen.Answered | 10 Replies | 2554 Views | Created by Lars P G - Wednesday, March 30, 2011 10:01 AM | Last reply by Yann Duran - Tuesday, April 5, 2011 6:21 AM -
3 Votes
Problem when adding parent entities to a screen after the child entities were already added.
With Yann's added info above and the "For completeness" info on the referenced post above I was finally able to link a child entiry to its parent when in the ...Answered | 5 Replies | 2626 Views | Created by elmiller47 - Wednesday, August 3, 2011 9:22 PM | Last reply by Yann Duran - Friday, August 5, 2011 12:29 AM -
1 Votes
Validation before Save - only “permitted” entities were modified
e.Entity); foreach(addedEntity in addedEntitites) { // validation code for added entities goes ...Answered | 1 Replies | 4939 Views | Created by Aviv - Friday, December 25, 2009 10:01 AM | Last reply by Diego B Vega [MSFT] - Saturday, December 26, 2009 9:39 AM -
0 Votes
Fixing Up Entity Properties When Retrieving and Saving
But when I'm saving back to the db, I need to tell EF "Hey, there's a column in the db table called DESCR_UPR that needs to be assigned this value.Answered | 3 Replies | 3753 Views | Created by Lawrence Parker - Wednesday, September 8, 2010 1:52 PM | Last reply by Lawrence Parker - Thursday, September 9, 2010 3:15 PM -
3 Votes
Entity Validation
That means Me is the DataService which cannot contain entity collection members unless you added one in your parital class.Answered | 8 Replies | 1919 Views | Created by Graham Clements - Tuesday, March 13, 2012 2:19 PM | Last reply by Graham Clements - Tuesday, March 13, 2012 3:36 PM -
3 Votes
Entity rows excluded before validation
Will communicate to the product team about your requirement of Business Rule validation on staging tables before loading to MDS.Answered | 3 Replies | 1110 Views | Created by Drew Duckworth - Thursday, January 8, 2015 5:25 AM | Last reply by Nithesh Shetty - MSFT - Friday, January 16, 2015 2:31 AM -
0 Votes
Entity Framework: Attached Entities not Saving
If I understand your code correctly, then AccountRoles is a collection on the accountUser entity.Answered | 1 Replies | 9057 Views | Created by ee99ee3 - Wednesday, May 5, 2010 7:11 PM | Last reply by Arthur Vickers - MSFT - Friday, May 7, 2010 4:09 PM -
1 Votes
Proper way to handle a validation error when calling save on a screen
I was trying to avoid the user having to click Save after executing the method to move to the next status when there is no validation error but have them ...Answered | 3 Replies | 1947 Views | Created by Brian Kidd - Tuesday, February 7, 2012 11:59 PM | Last reply by Otomii Lu - Thursday, February 9, 2012 3:35 AM -
2 Votes
Entity framework 4.0 - duplicate inserts
Hi BrenJans, When you call to the AddObject() method, the *entire* object graph is added to the EF context with the state "Added", so ...Answered | 1 Replies | 7447 Views | Created by BrenJans - Sunday, October 3, 2010 11:10 AM | Last reply by Jorge Fioranelli - Sunday, October 3, 2010 9:20 PM -
0 Votes
How to check duplicate in DB just before adding a new entity
(Student) with a new StudentID, regardless of who created that row in > the database.Answered | 4 Replies | 2683 Views | Created by DilipK - Tuesday, December 27, 2011 1:08 AM | Last reply by Alan_chen - Tuesday, January 3, 2012 8:11 AM -
1 Votes
How to set a collection of related entities to read only in entity designer
To make the picture complete, I would add also server side logic, to prevent that Business contacts can be added/updated when the security condition is met.Answered | 4 Replies | 1996 Views | Created by Uwe Helmut - Tuesday, January 10, 2012 9:23 PM | Last reply by Justin Anderson - Tuesday, January 10, 2012 11:07 PM -
5 Votes
Entity 'Inserted' method interfering with 'Validate' method?
Out of curiosity, how would I go about preventing the new record from being detected as a duplicate in the validation code?Answered | 7 Replies | 800 Views | Created by jim bancroft - Sunday, December 13, 2015 11:27 PM | Last reply by Hessc - Monday, December 14, 2015 5:34 PM -
4 Votes
Loading an entity with reference data from another entity
But when you do that, you add a lot more support work.Answered | 5 Replies | 2616 Views | Created by Labry - Thursday, August 8, 2013 1:24 PM | Last reply by davidbaxterbrowne - Tuesday, September 24, 2013 5:15 PM -
2 Votes
Check the validation when you save the screen
You can check the HasErrors property on the ValidationResults of the screen's details: bool screenHasErrors = ...Answered | 1 Replies | 3108 Views | Created by serkuzma - Thursday, December 8, 2011 8:33 AM | Last reply by Justin Anderson - Friday, December 9, 2011 2:01 AM -
0 Votes
What event does EF raise when an entity has been saved?
I seem only to get it if I save first.Answered | 14 Replies | 5917 Views | Created by devBrix - Monday, December 6, 2010 2:46 PM | Last reply by devBrix - Friday, December 10, 2010 7:16 AM -
0 Votes
Entity Framework 4: is there way that Entity framework can catch error such as duplicated primary key?
You could as you say use the same statement on the collection you are adding, but you should check the database too.Answered | 6 Replies | 5995 Views | Created by JJChen - Wednesday, May 4, 2011 9:39 PM | Last reply by Lars-Erik Aabech - Friday, May 6, 2011 7:36 AM - Items 1 to 20 of 3603203 Next ›
No announcements