Posts

Entity Framework 6 inverting column order for composite foreign keys -

i'm getting error: (15,10) : error 3015: problem in mapping fragments starting @ lines 6, 15: foreign key constraint 'beta_alpha' table beta (alpha_2, alpha_1) table alpha (alpha_1, alpha_2):: insufficient mapping: foreign key must mapped associationset or entitysets participating in foreign key association on conceptual side. the key information composite foreign key in beta (alpha_2, alpha_1) has columns inverted, alpha_2 first , alpha_1 second. appears bug in entity framework. here entities: public class alpha { [key, column(order = 1)] public string alpha_1 { get; set; } [key, column(order = 2)] public string alpha_2 { get; set; } } public class beta { [key, column(order = 1)] public string beta_1 { get; set; } [key, column(order = 2)] public string alpha_2 { get; set; } [required] public string alpha_1 { get; set; } [foreignkey("alpha_1, alpha_2")] public virtual alpha alpha { get; set; } } note...

cq5 - How to invoke a workflow providing data/arguments using Java API -

i've followed https://helpx.adobe.com/experience-manager/using/invoking-experience-manager-workflows-using.html , can invoke workflow using java api. i'm trying tweak example can start workflow metadatamap containing key value pairs steps work with. log message prints key , value sets. steps in workflow not have data. how pass metadatamap workflow when starting java api? @override public string startworkflow(string workflowname, string workflowcontent, metadatamap metamap) { try { //invoke adaptto method create session resourceresolver resourceresolver = writeservice.getresolver(); session = resourceresolver.adaptto(session.class); //create workflow session workflowsession wfsession = workflowservice.getworkflowsession(session); // workflow model workflowmodel wfmodel = wfsession.getmodel(workflowname); // workflow data // first param in newworkflowdata method payloadtype. ...

c# - I can't get back my visual studio project -

in last few days programing project in visual studio express 2013. saved last night. today, cant view properly. can't view designer mode or view coding. help. when open project, shows me files on solution explorer, nothing on main screen. how can go moment able program after click open project? when click on form1.cs , chose view designer happens : there no editor available filename.cs make sure application file type (.cs) installed . need please. code in c# repeat of this: "there no editor available for" can't open .cs you know, google friend times these.

openbravo - Is there somewhere to be found a complete list of default accounts for PR15Q2.2 or an updated Generic Charts of Accounts file for version PR15Q2.2? -

i working on creating new charts of accounts file. started working coa file here: http://centralrepository.openbravo.com/openbravo/org.openbravo.forge.ui/forgemoduledetail/generic-chart-of-accounts , using guide: http://wiki.openbravo.com/wiki/creating_accounts_files when @ file , guide there difference when comes standard accounts. these not in guide on web in file: "cb_expense_acct" "cb_receipt_acct" "ch_expense_acct" , these not in generic charts of accounts file in guide on web: p_cogs_return_acct p_revenue_return_acct t_credit_trans_acct t_due_trans_acct there somewhere found complete list of default accounts pr15q2.2 or updated generic charts of accounts file version pr15q2.2? i'd recommend use testing spreadsheet openbravo. information in wiki indeed confusing, in spreadsheet can paste own coa , debug until no errors shown: http://sourceforge.net/projects/openbravo/files/04-openbravo-accounting/chart%20of%20accounts...

c# - Call stored procedure in a Linq-to-Entities query -

i using ef 6 & visual studio 13 free community. i using database-first approach in current project. i created sql server db project , added project work ef i created tables & stored procedures. after added db project created class procedure_name_result , need use linq queries in project don't know how call in query, or if recognize can't see in uploaded db edit both answers able know how call in linq query var query = x y select new { elemnt, var_inside_query = db.procedure_name(@params) }; i use northwind database sample project. using system; using system.collections.generic; using system.linq; namespace ef_sp { class program { static void main(string[] args) { using (var context = new northwindentities()) { var results = context.getsalesbycategory("seafood", "1998"); ...

Qt signal/slots - consume signal in one of many slots? -

is there way consume future slots (and stop them executing) in 1 of many slots connected same signal? my goal here emit signal message many qobjects , consume (stopping iteration future slots) when qobject in message belongs finds it. from understand in qt documentation : if several slots connected 1 signal, slots executed 1 after other, in order have been connected, when signal emitted. i want able stop process within slot. suggestions? no, there's no way it, , should not think of way. sender should perform same no matter number of slots connected signal. that's basic contract of signal-slot mechanism: sender decoupled from, , unaware of, receiver. what you're trying qualified dispatch: there multiple receivers, , each receiver can process 1 or more message types. 1 way of implementing follows: emit (signal) qevent . lets maintain signal-slot decoupling between transmitter , receiver(s). the event can consumed custom event dispatcher kn...

javascript - checkbox value within submit button -

so tough describe cannot figure out, feel close however! basically have list of things, need organised. lets pretend books, have these books, information on them (author, length, title, genre). if wanted search array of books comedic books. tick comedy tickbox , hit search. i have gotten work easily! tricky part search straight away when selected, javascript searches through checkboxes see checkboxes selected before runs code eliminates answers irrelevant. needs checkbox value submitted. is there way can have image functions button, carries value of checkbox...??? so far have gotten close: <div class="wells"> <input type="image" value="comedy" src="img/pieces/comedy.png" alt="comedy" onclick="myfunction()" checked> </div> i know myfunction works , told. literally need value of checkbox used submit button. the long way this: <img class="imgcomedy" src="img...