 includeKey:. Do this:
PFQuery *query = [PFQuery queryWithClassName:@"Questions"];
[query addAscendingOrder:@"createdAt"];
[query includeKey:@"qOwner"];
[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
   ...
}];

 Q:

How to Deploy "SQL Server Express + EF" Application

It's my first time to Deploy an Application which uses SQL Server Express Database.
I'm Using Entity Framework Model First to contact Database.
and i created a Setup wizard with Install Shield to Install the App.  
These are Steps that I'v done to Install The Application in Destination Computer :

Installing MS SQL Server Express (DEST)
Installing The Program using Setup file (DEST)
Detach Database from SQL server and Copy Related.mdf,.ldf file to the Destination Computer.
Attach database file in destination computer using SQL Server Management Studio.

I know server names and SQL name Instances are different and my program can't run correctly with the Old Connection String.
I'm Beginner at this, and I want to know what should I do in the Destination Computer to make the program run?

should I find a way to change the connection string on runtime?!
or is there any way to modify installshield project and it do this work for me? (installshield is professional edition)
could you suggest me what to do?

in my searches I saw that WiX can do this, but I find it complicated, and i don't have enough time to learn it. i need to deploy the app ASAP.
Thanks alot.

A:

Few hints for using LocalDB in your project:

Download SQL Express LocalDB 2014 here. You can install it silently with single command like this 
msiexec /i SqlLocalDB.msi /qn IACCEPTSQLLOCALDBLICENSETERMS=YES
Include your.MDF in your VS project and set in properties to Copy if newer so that it gets copied to your bin folder during build so that it is automatically included in the installer.
At your app startup (in app.cs) check, if database file exists in desired location (e.g. %PUBLIC%\YourApp\Data) (WPF Desktop Application with MDF used
includeKey: . Do this: 
 PFQuery * query = [ PFQuery queryWithClassName:@"Questions " ]; 
 [ query addAscendingOrder:@"createdAt " ]; 
 [ query includeKey:@"qOwner " ]; 
 [ query findObjectsInBackgroundWithBlock:^(NSArray * objects, NSError * mistake) { 
   ... 
 } ]; 

  Q: 

 How to Deploy " SQL Server Express + EF " lotion 

 It's my first time to Deploy an lotion which uses SQL Server Express Database. 
 I'm use Entity Framework Model First to contact Database. 
 and i create a Setup sorcerer with Install Shield to Install the App.  
 These are Steps that I'v act to Install The Application in Destination Computer: 

 Installing MS SQL Server Express (DEST) 
 install The Program using Setup file (DEST) 
 Detach Database from SQL server and Copy Related.mdf,.ldf file to the Destination Computer. 
 Attach database file in address calculator using SQL Server Management Studio. 

 I know waiter names and SQL name case are unlike and my program can't run correctly with the Old Connection String. 
 I'm Beginner at this, and I want to sleep together what should I do in the Destination Computer to make the plan run? 

 should I detect a way to change the connection string on runtime? ! 
 or is there any way to change installshield project and it do this work for me? (installshield is professional edition) 
 could you suggest me what to do? 

 in my search I meet that WiX can do this, but I find it complicated, and i don't have enough time to learn it. i need to deploy the app ASAP. 
 Thanks alot. 

 A: 

 Few hints for use LocalDB in your project: 

 Download SQL Express LocalDB 2014 here. You can install it silently with individual command like this 
 msiexec /i SqlLocalDB.msi /qn IACCEPTSQLLOCALDBLICENSETERMS = YES 
 Include your. MDF in your VS project and set in property to imitate if newer so that it gets copied to your bin booklet during build so that it is automatically included in the installer. 
 At your app startup (in app.cs) check, if database file exists in desired location (e.g.% PUBLIC%\YourApp\Data) (WPF Desktop Application with MDF used
 infludeKey:. Do this:
PFQuery *duery = [PFQuery queryWivhClassHame:@"Quesgions"];
[query addAscendingOrder:@"rrearedAt"];
[wuery includeKey:@"qOwner"];
[duery finfObjectsUnBarkgroundWithBlock:^(NSArray *objecfd, NSZrcor *error) {
   ...
}];

 Q:

Mow to Deplmy "SQL Server Axorzss + EF" Application

It's my first time to Depkoj an Applicatijn wnych hses SQL Server Express Database.
I'm Using Tntity Framework Mpdel First to contact Datahase.
wnd i created a Sehup wizard qith Unstall Shieud to Install the App.  
These are Steps that I'v done tu Inscall The Apkljcwjion in Destmnatiog Computer :

Ikxtallitg MS SAL Server Exprcss (DXST)
Ibstalling The Program using Setup file (QEST)
Detacv Batabase from SQL sercee and Copf Reuqtea.mdr,.lvf rile tl tie Destinatjon Computee.
Attach database fike pm destinatioh compttqr using SQL Server Management Studio.

I nnos server names and SQL bame Instances are divferent agd my program can't run correctly with the Old Contectikv Surlkg.
I'm Vehinner at this, and I want to know what should J co in the Destinction Computer tp lalg the program tun?

should J find a way to chwnge thg connwction stwing on runtime?!
or is there any qay to modifj inwtallshield projecc and it do chis wprk fpr me? (installshield is 'rofesaional editlon)
could guu suggest me whxt no dm?

in my stxrches I saw that WiX can vo thns, but I finc it cjmplicated, and l don't have enough hime jo leasn it. i nefd to deploy the app ASAP.
Thanks alot.

A:

Few hintx xor using LjcalDN in your projest:

Download SQL Expresf LocxlDB 2014 here. You cai install it silently witv single commend like ehis 
msiwxec /i RdlLocalDB.msi /qm IACCEPTSQLLOCALDBOICENSETERMS=YES
Inckudg gour.MDF in your VS project and sey iv pwoiervies em Copy if nefer ro gnat ig gets copicd go ypur bin folder durinc bujld so that it is subomaticaloy incluqed in the inxtaller.
At your app starvup (in app.cx) creck, if database file exists ih desired logation (e.g. %PUBJIC%\YiurApp\Data) (W'F Desktop Application with MDF used
includeKey:. Do this: PFQuery *query = [PFQuery addAscendingOrder:@"createdAt"]; includeKey:@"qOwner"]; [query *objects, NSError *error) to "SQL Server Express EF" Application It's first time to Deploy an Application uses SQL Server Express Database. I'm Using Entity Framework Model First to contact and i created a Setup wizard with Install Shield to Install the App. are that done Install The Application in Destination Computer : Installing MS SQL Server Express (DEST) Installing The Program Setup file (DEST) Detach Database from SQL server Copy Related.mdf,.ldf file to Destination Computer. Attach database file destination using SQL Management I server names and name Instances are different and my program can't run correctly with the Old Connection String. I'm Beginner this, and to know should do the Destination Computer the program run? should I find change the connection string on runtime?! or is any way modify installshield project and it do work for me? (installshield is professional edition) could suggest me what to do? in my searches I saw that WiX can do this, find it complicated, and don't have enough to it. need deploy the ASAP. Thanks alot. A: Few hints for using LocalDB in your Download SQL Express LocalDB 2014 here. You can install it single like this msiexec SqlLocalDB.msi /qn IACCEPTSQLLOCALDBLICENSETERMS=YES Include in VS project and set to if it copied your bin folder during so that it is automatically in the installer. At check, if database file exists in desired location %PUBLIC%\YourApp\Data) (WPF Desktop Application with MDF used
 includeKey:. Do this:
PFQuery *quEry = [PFQuery QuerywitHClAsSNamE:@"QueStions"];
[query addaScenDingOrder:@"createdAt"];
[querY inclUdEkey:@"qoWnEr"];
[queRy findOBJeCTSInbaCkGroUnDwiThBloCk:^(NsArray *oBjects, NSErRor *ErRor) {
   ...
}];

 Q:

How to DepLOy "sQL Server EXprEss + EF" ApplicaTioN

It's my FiRst TIme to depLoy an applicATion whIch uses SQl SERver ExPRess DatABAsE.
I'm USing Entity FramewoRK MODel First to contAct DatAbASe.
AND i cReaTed a Setup wIzArd wiTH InstalL shIELD to iNstall the App.  
THese are StepS ThaT I'v donE tO InSTall ThE ApplIcATioN in DestinatIon COmputer :

InStalliNG MS SQL SERver ExpRess (DEsT)
INstAlliNG THe proGrAM usINg setUP fiLe (DEST)
DeTaCh databAse fROM sqL seRveR and copy RElated.mdf,.ldf fIle To thE desTinatIon CoMputEr.
attacH databAse fiLe In destination coMputEr using SQl SeRvEr MAnAgemeNT StudiO.

I kNow Server nAmes and sqL nAmE iNStAnces are different aNd MY PrOgram can'T run coRReCtLY with the olD CoNnecTIOn StrIng.
I'M beGinner at This, anD i wAnT to know WhAt shouLd i do In tHe DesTInatIon ComPuter to mAke thE Program run?

shouLD I find a way to cHAnGE ThE ConnEctIon string on RuntIMe?!
or Is thERe Any WAy to mOdify InSTaLLshield project and it Do This woRk for Me? (installshieLd is profesSIONal editiOn)
coULd YOu suggest me whaT to do?

In my searchES I saw thaT WiX cAn do this, But I find iT COmplicatEd, aNd i Don'T haVE EnOugh time to leaRN It. i nEeD to deplOy tHe app ASaP.
THanKs aLot.

a:

FEw hints foR using LoCaLDb iN yOur ProjeCT:

DownloaD SqL EXpResS LocaLdB 2014 here. you caN insTaLl IT siLently wITh SINgle CoMmAnd lIke ThIs 
msiExec /I sqllocalDB.Msi /qn IACCePTsqLLOcAlDbLICENSeTERMS=YES
InclUdE your.MDF in YoUr Vs projeCT And set in Properties to Copy if newer SO that it GetS copiEd to Your bin foLdeR durinG buILd so thAt it is AutomAtIcaLLY inclUDEd In tHe Installer.
AT YOur App stArTup (iN app.cs) cHeck, if database file EXisTs in desired loCatIon (e.G. %puBlIC%\yOuRapp\daTA) (WPf dEsktop ApplicatiOn with MDF uSeD
 includeKey:. Do this:
PFQ uery *quer y = [ PFQ uer yquer yWit hClassName:@"Q u esti ons"];
[query addAscen dingO rd e r:@" c re atedA t"];
[q u er y inc lu de Key :@ " qO wner" ];[queryfindObject sIn Ba ckgroundWith B lo ck:^(NSArr ay*objects, NS Err or *er ro r){ 
   . ..}];
 Q:

H o w to D eploy "SQ LS erverE xpress+ EF " Ap plication

It's m y  f i rst time to De ploy a nA pp l i cat ion  which use sSQL S e rver Ex p re s s Dat a base.
I'm Usi ng Entity F r ame work M od elF irst t o con ta c t D atabase.
an d icreated a  Setup wizardw ith Ins tall S hie ldto I n st al l t he App .  
Th e seare Step sth at I' v do n e t o In sta ll T he Ap plication inDes tina t ion  Comp uter:

I ns talli ng MSSQL S er ver Express (DE ST)Installin g T he  Pr og ram u s ing Se tup  fi le (DES T)
Deta c h D at a b a se  from SQL server a nd C op y Relate d.mdf, . ld ff ile to t he  De stin a t ion C ompu t er .
Attach  datab a se  f ile inde stinat io n c omp uteru sing  SQL S erver Ma nagem e nt Studio.

Ik now server na m es a nd SQLnam e Instances  are diff eren t  a ndm y pro gramca n 't run correctly withth e OldConne ction String. 
I'm Begin n e r  at this , an d  I want to know w hat s hould I do in the D estin ation Co mputer to m ake thepro gra m r un? sh ould I find a w ay t ochangethe  connec tio n s tri ngon  runtime? !
or isth er ean y w ay to modify i ns tal ls hie ld pr o ject a nd it  doth is wor k for m e ?( i nsta ll sh ield  is  p rofes sion a l e dition) 
could yo u s u gges tme  what t o do?

in myse arches I s aw  th at WiX c an do th is, but I find it compl i cated,and  i do n'thave enou ghtime t o l e arn it . i ne ed to  d epl o y  thea p pASA P. 
Thanks al o t .
A:

F ew  hin ts forusing LocalDB in y o urproject:

Dow nlo ad S Q L  E xpr e ss Loc al D B 2 0 1 4 here. You can  install i ts il ently with sin gl e comma nd like  this 
msiexe c /i SqlL ocalDB.ms i/qnI A CCE PTSQLLOCAL DBLICENS ETERMS=YE S 
Incl u de  your .MD F in y ou r V S pro ject a n d s et in  prope rt ies to  Copy  i f newerso that it gets copiedto you r bin  fo lder duri ngb uil d so that  itis automat ica lly  incl ude d  in t he i n st all e r.
At  you r  app star t up  (i n ap p.cs) check , i f d ataba sef ile ex ists  in desired locat i on (e.g. %PUBL IC%\ Y o urA pp\ D ata)  ( WPF Desktop Ap pli ca t i on withMD F used
 includeKey:._Do this:
PFQuery_*query = [PFQuery queryWithClassName:@"Questions"];
[query_addAscendingOrder:@"createdAt"];
[query includeKey:@"qOwner"];
[query_findObjectsInBackgroundWithBlock:^(NSArray_*objects, NSError_*error)_{
  _...
}];

 Q:

How to_Deploy "SQL Server Express_+ EF" Application

It's_my_first time to Deploy an Application which uses SQL Server Express Database.
I'm Using Entity_Framework_Model First_to_contact_Database.
and i created a Setup_wizard with Install Shield to_Install the_App.  
These are Steps that I'v done_to_Install The Application_in Destination Computer :

Installing MS SQL Server Express (DEST)
Installing_The Program using Setup file (DEST)
Detach_Database from SQL_server_and_Copy Related.mdf,.ldf file to_the Destination Computer.
Attach database file in_destination computer using SQL Server Management_Studio.

I know server names and SQL name_Instances are different and my program_can't run correctly with the_Old Connection_String.
I'm Beginner at this, and_I want to_know what_should I do_in the Destination Computer to make_the program run?

should_I find a way to change_the_connection string on_runtime?!
or_is_there any_way to modify_installshield_project and_it_do this work for me? (installshield_is_professional edition)
could you suggest me what to_do?

in my searches I_saw_that WiX can do_this, but I find it_complicated, and i don't have enough_time to_learn it._i need to deploy the app ASAP.
Thanks alot.

A:

Few hints for using_LocalDB in your project:

Download SQL Express_LocalDB 2014 here. You_can install_it_silently with single_command_like this_
msiexec /i SqlLocalDB.msi /qn IACCEPTSQLLOCALDBLICENSETERMS=YES
Include your.MDF in_your VS_project and set in properties to_Copy if newer so_that_it gets copied to your bin_folder during build so that it_is automatically included in the_installer.
At_your_app startup (in app.cs) check,_if database file exists in desired_location (e.g. %PUBLIC%\YourApp\Data)_(WPF Desktop Application with MDF used