Click here to Skip to main content
15,887,214 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Saving to DataBase (solved) Pin
Richard Deeming13-Nov-13 3:13
mveRichard Deeming13-Nov-13 3:13 
GeneralRe: Saving to DataBase (solved) Pin
Member 1038849413-Nov-13 3:21
Member 1038849413-Nov-13 3:21 
QuestionRe: Saving to DataBase Pin
Eddy Vluggen12-Nov-13 9:08
professionalEddy Vluggen12-Nov-13 9:08 
AnswerRe: Saving to DataBase Pin
Pete O'Hanlon12-Nov-13 9:14
mvePete O'Hanlon12-Nov-13 9:14 
QuestionRadioButton Pin
Member 103884948-Nov-13 0:03
Member 103884948-Nov-13 0:03 
AnswerRe: RadioButton Pin
Marco Bertschi8-Nov-13 0:15
protectorMarco Bertschi8-Nov-13 0:15 
AnswerRe: RadioButton Pin
Simon_Whale8-Nov-13 0:22
Simon_Whale8-Nov-13 0:22 
QuestionEntity Framework storedprocedure (Value insert) mapping with Entity attribute also need an external attribute (this is required to be input parameter) Pin
ansari81@yahoo.com7-Nov-13 2:28
professionalansari81@yahoo.com7-Nov-13 2:28 
Let me Explain about the entire structure of what we are doing before start ask the question

Our client required Custom Primary keys for all our transactions. To create the key, we are using store procedure which require an input parameter named "SiteCode". This store procedure will create sequence keys for every transaction in the application we have made

Every transaction insert we have written a Stored procedure and inside this sp's we have call the key generating SP before we do insert statements and we have given those key as a primary key to the insert statement. So the actual "SiteCode" input parameter has passed to every transaction SP's as an input parameter

We have created DB first entity Model and all the entity class has been created

Now We have a screen in WPF which capture the data for the models Customer, Address, Contact information.

so Instead of getting model one by one and do save changes. we would like to map the stored procedure function (used to insert the values) with respective model

for example CutomerRef attribute to sp_CreateCustomer SP in entity framework

While we are doing this mapping we can mapp all the fields except the "SiteCode" field which don't have reference in any entity model.

We have tried to create partial class to the cutomerRef model and add this property in to that partial class and try to map with SP it doesn't work Also, tried to create the field in the model itself in entity model and map with the sp parameters also not working.

We know, we can do this to call sps from stored procedure but we need them to do just by Context.Customer.Add(customerModel)

Any help would be appriciated
Regards,
Ansari

QuestionPowerPivot Pin
ThetaClear5-Nov-13 10:21
ThetaClear5-Nov-13 10:21 
AnswerRe: PowerPivot Pin
Abhinav S5-Nov-13 17:43
Abhinav S5-Nov-13 17:43 
GeneralRe: PowerPivot Pin
ThetaClear5-Nov-13 20:19
ThetaClear5-Nov-13 20:19 
Questionnew features in 2012 as compared to 2008 and 2010 Pin
SateeshVankayala4-Nov-13 0:57
SateeshVankayala4-Nov-13 0:57 
AnswerRe: new features in 2012 as compared to 2008 and 2010 Pin
thatraja4-Nov-13 1:21
professionalthatraja4-Nov-13 1:21 
AnswerRe: new features in 2012 as compared to 2008 and 2010 Pin
Bernhard Hiller4-Nov-13 2:57
Bernhard Hiller4-Nov-13 2:57 
AnswerRe: new features in 2012 as compared to 2008 and 2010 Pin
Abhinav S4-Nov-13 4:51
Abhinav S4-Nov-13 4:51 
AnswerRe: new features in 2012 as compared to 2008 and 2010 Pin
Richard MacCutchan4-Nov-13 5:56
mveRichard MacCutchan4-Nov-13 5:56 
AnswerRe: new features in 2012 as compared to 2008 and 2010 Pin
Shameel13-Nov-13 3:55
professionalShameel13-Nov-13 3:55 
NewsKeypress Event,vb.net Pin
srinivasankrishnaa2-Nov-13 22:23
srinivasankrishnaa2-Nov-13 22:23 
GeneralRe: Keypress Event,vb.net Pin
Richard MacCutchan3-Nov-13 1:29
mveRichard MacCutchan3-Nov-13 1:29 
GeneralRe: Keypress Event,vb.net Pin
Shameel13-Nov-13 3:57
professionalShameel13-Nov-13 3:57 
Questioncustom ribbons toggle button do not unchecked (default state) after checking it on mail send button click Pin
zakirhos2-Nov-13 20:36
zakirhos2-Nov-13 20:36 
AnswerRe: custom ribbons toggle button do not unchecked (default state) after checking it on mail send button click Pin
Dave Kreskowiak3-Nov-13 4:06
mveDave Kreskowiak3-Nov-13 4:06 
Questionnot getting it Pin
nissan12341-Nov-13 13:48
nissan12341-Nov-13 13:48 
AnswerRe: not getting it Pin
TnTinMn1-Nov-13 15:03
TnTinMn1-Nov-13 15:03 
AnswerRe: not getting it Pin
Abhinav S2-Nov-13 19:50
Abhinav S2-Nov-13 19:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.