Posts

c# - EntityFramework Include (Eager Load) virtual Property of virtual property -

imagine have 3 dbsets below: category { ... public virtual icollection<item> items {get; set;} ... } item { ... public virtual icollection<specification> specifications{get; set;} ... } specification { ... } for eager loading use this: category cat = db.categories.include(c=> c.items).firstordefault(c=> c.id == 1); but problem cat.items[0].specifications null , how can make eager load sub collections of collection too? p.s.: tried removing virtual keyword testing (i'm don't want remove it) didn't work either. you can use notation db.categories.include("items.specifications") note has string

groovy - Active Choices Reactive Reference Parameter in jenkins pipeline -

i'm using active choices reactive reference parameter plugin in dsl job here code parameters { activechoiceparam('choice1') { description('select choice') choicetype('radio') groovyscript { script("return['aaa','bbb']") fallbackscript('return ["error"]') } } activechoicereactiveparam('choice2') { description('select choice') choicetype('radio') groovyscript { script("if(choice1.equals("aaa")){return ['a', 'b']} else {return ['aaaaaa','fffffff']}") fallbackscript('return ["error"]') } ...

sql server - unable to update when 0(zero) value is stored for empty fields in c# -

i have non mandatory phone textbox field , datatype int. if leave phone field blank , submit form, phone column stored 0(zero) in database. facing issue update: while updating when phone '0' respective row not updated. need set default value of phone null? if please explain. here update query cmd.commandtext = "update client_final set companyname = @companyname, url = @url, industry = @industry, contactperson1 = @contactperson1, contactperson2 = @contactperson2, designation = @designation, fax = @fax, phone = @phone, mobile = @mobile, emailid1 = @emailid1, emailid2 = @emailid2, baddress = @baddress, bcity = @bcity, bstate = @bstate, bzipcode = @bzipcode, bcountry = @bcountry, regaddress = @regaddress, regcity = @regcity, regstate = @regstate, regzipcode = @regzipcode, regcountry = @regcountry client_id = @client_id"; cmd.parameters.addwithvalue("@client_id", txtclientid.text); cmd.parameters.addwithvalue(...

database - Entity Framework and Linq equivalent in Android -

i new android. literally learn android few days ago. wondering, there entity framework , linq equivalent android? also, need store/cache record local database. best database use? thinking of using sqlite. appropriate android? thanks! sqlite appropriate store local data example: if retrieving json, u can sqlite database store data offline mode, , of course u can use cache well, recommend u sqlite. hope helped.

objective c - OBJC_PRINT_VTABLE_IMAGES and OBJC_PRINT_VTABLE_SETUP does not show any output -

i've tried use objc_print_vtable_images , objc_print_vtable_setup environmental variables on objective-c executable in order learn vtable mechanism in objective-c objects. unfortunately mentioned environment variables have no effect on console output, despite fact runtime acknowledged variables set: » objc_print_options=1 objc_print_vtable_images=yes /applications/textedit.app/contents/macos/textedit objc[41098]: objc_print_options set objc[41098]: objc_print_vtable_images set i've tried use both variables on executables provided system (textedit) , own. no effect. whole vtable mechanism in objective-c objects obscure. it's hard find information mechanism on apple pages. there info other sources, no official documentation: http://www.sealiesoftware.com/blog/archive/2011/06/17/objc_explain_objc_msgsend_vtable.html http://cocoasamurai.blogspot.com/2010/01/understanding-objective-c-runtime.html why these variables not working? vtables in current version of objecti...

youtube - Cobalt for Amazon Prime -

we planning use cobalt port on our embedded platform run applications amazon prime along youtube. possible use applications other youtube? if so, expected run-time footprint of cobalt? also, there licensing cost associated cobalt? cobalt can run application has been engineered run within cobalt subset of html/css/webapi. unlikely amazon prime video run out of box on cobalt, made run effort. cobalt open source, , has no licensing fee. for youtube, cobalt takes 130mb of cpu memory. gpu usage depends lot on image cache settings , ui resolution. the binary 5mb stripped , compressed, 19mb uncompressed. our icu data 2mb compressed, 6mb uncompressed. have couple different font options take varying amounts of space. can cover in 10mb of uncompressed fonts. these numbers subject significant change.

c# - VS does not allow me to invoke my extension method -

for reason, vs allows me use long writing of extension method invocation. compiler rejects shorter form: public static class operationextender { public static void mymethod(operation ope, int value) { ... } } i can invoke way: operationextender.mymethod(anoperation, 0); but if type: anoperation.operationextender(0); vs generates usual comilation error: 'operationextender.mymethod(operation, int)' not contain definition 'mymethod' , no extension method 'mymethod' accepting first argument of type 'operation' found (are missing using directive or assembly reference?) if first writing accepted, suppose cannot usung/ns/assembly issue.... because it's not extension method. forgot this keyword on first parameter (the type being "extended"): public static void mymethod(this operation ope, int value) { //... }