Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:721867
More Search Options
RSS Available
Matching Posts
Re: Getting duplicate entries.
I have resolved this part and apparently its now giving issued with update, can anbody find anything unusual. 1. Answer to my first problem, was that in Model Binders the entity is being manipulated from sessions and the created back to the service layer. Apparently it seems that because its all happening outside linq orm framework, this entity needs to be recreated as "From clause ...from ..in db." and then linq correctly recognizes it and does the correct job of insertion.
Posted to
ASP.NET MVC
(Forum)
by
naturehermit
on 11/23/2009
Re: Getting duplicate entries.
the thing is that when applicant is added and an applicant.Person is assigned from the session(in model binder), it creates a new person, which is actually the original person created in the beginning. How can I avoid that. protected override void OnModelUpdated(ControllerContext controllerContext, ModelBindingContext bindingContext) { var personType = (Person)controllerContext.HttpContext.Session[PersonSessionKey]; controllerContext.HttpContext.Session[CurrentApplicantSessionKey] = null; var av
Posted to
ASP.NET MVC
(Forum)
by
naturehermit
on 11/2/2009
Getting duplicate entries.
Hi there, I have created a universalrepository that takes the type passed to it and when I create data entry method, the entity is created fine, but when I create a linked entity to it, i get the base entity created again. Any ideas why? Details.. I have divided a specification into multiple tables to manage stuff... Now I have got a person entity, an applicant entity...(in reality applicant and person are the same), a contractor entity. A contractor can only be created by an applicant and therefore
Posted to
ASP.NET MVC
(Forum)
by
naturehermit
on 10/29/2009
Re: Getting duplicate entries.
Hi there, I think this is related to mvc because of perhaps my custom model binders but you may be right, could you please move this to the linq to sql forum for me please...
Posted to
ASP.NET MVC
(Forum)
by
naturehermit
on 10/29/2009
Re: How to create a model Binder for a dependent entity
I have a requirement where although C is a seperate entity say Contractor, but it can only be created by B say Broker. But B can also create itself for the same functionality as it is creating C. Now when I want to create C, I need to create both B and A as you know that B relies on A and C relies on B. So in C say the fields are only JournalEntry, ContractLength etc--- And B needs to create fields say his BrokerName etc, Likewise A needs to have the fields say telephone, department etc. so when
Posted to
ASP.NET MVC
(Forum)
by
naturehermit
on 9/28/2009
Re: How to create a model Binder for a dependent entity
Ok here's what I am trying to do.. An entity has common fields that stay in the topmost base class i.e. A, B inherits these from A, and C inherities further fields from B. In an mvc when I m creating C, I provide fields for both A and B, and ofcourse C, however this is just not working, taking model binder or any approach. The id part is important, because C is both A and B and B is A. C is only created by b by the way...I dont know if that makes sense. Thanks
Posted to
ASP.NET MVC
(Forum)
by
naturehermit
on 9/27/2009
How to create a model Binder for a dependent entity
Can somebody point me to right direction about creating a model binder for a dependent entity. say for e.g. three entities A, B and C B relies on A, and C relies on B. The id storage of all three are actually same. A's id is autogenerated. Now when I want to create C, I would like to first create B and A and pass the id of a to c. How would i go about it in a ModelBinder, where rest of the values come from the form.
Posted to
ASP.NET MVC
(Forum)
by
naturehermit
on 9/24/2009
Re: Entity Framework 3.5 SP1, Issues--
Thanks Dave, I shall look into it, when I shall have access to my email.
Posted to
ASP.NET Dynamic Data
(Forum)
by
naturehermit
on 9/23/2009
Key generation for linked entities
Suppose you have three entities. A, B and C A is the basetype entity for B (this is replicated in table structure as well i.e. inheritance) B is the basetype for C. Now suppose in an MVC type application, I want to create an object C. But object C needs to first create B and B first needs to create A and fill the required values. The most important part is that, they all have same ID. i.e. A is both B and C and likewise... The id (primary key) of A is same as that of B and C. How would I go about
Posted to
ASP.NET Dynamic Data
(Forum)
by
naturehermit
on 9/23/2009
Re: Entity Framework 3.5 SP1, Issues--
Hi Dave, Thanks again for the help. The model generated however doesnt fit my requirement. My model has contractor and applicant inheriting from person and therefore, their keys are not shown. Because Contractor and Applicant are person effectivly and have same keys. Further Person key is db autogenerated, which then becomes a key for applicant and contractor. On a side note, I am struggling with this autogeneration issue as my model binder also gives an error of missing value. Any ideas.
Posted to
ASP.NET Dynamic Data
(Forum)
by
naturehermit
on 9/23/2009
Page 1 of 299 (2988 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online