let.java:64)
at chapter09.code.listing.base.BookCatalogPortlet.init(BookCatalogPortlet.java:59)

Please let me know if i am missing some thing
source available @http://portletsinaction.googlecode.com/svn/trunk/ch9_BookCatalogSpringJdbc/
enter code here

A:

Its issue with Liferay 6.1.1 
I have tested the same with 6.0.6 and its working fine.

 Q:

Entity Framework not flushing data to the database

I am using Visual Studio 2012.  I have a very simple Products table in a Local Database (cleverly named Database1).  It has two fields: id and Name. I preloaded it with a few test data.
The following code should update the Name of the first Product.  Internally, it does.  I can retrieve all Products and see that the first one's Name is "Shirt."  But the change is never flushed to the database.  The record is never updated.  Examining the database reveals that the name has not been changed. 
My question is simple: Why are changes not being sent to the database?
using (var context = new Database1Entities())
{
    var products = context.Products;

    products.First().Name = "Shirt";
    context.SaveChanges();
}

Thanks in advance.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
EDIT:
I tried my best to enter the full code and output here.  But, no matter what I do, I continue to get the "Your post appears to contain code that is not properly formatted" error message.  After 30 minutes I am giving up.
EDIT: 
The code and output is here: http://pastebin.com/GmQtwAND

A:

I discovered the issue...and its solution.
The "Copy to Output Directory" property of the database file was set to "Copy always."  This, of course, meant that every time the application was built, a fresh copy was placed into the Bin directory.  The fix was to set it to "Copy if newer."   Doh.
In other words, the changes were being persisted in the database, but
let.java:64) 
 at chapter09.code.listing.base. BookCatalogPortlet.init(BookCatalogPortlet.java:59) 

 Please let me know if i am missing some thing 
 generator available @http://portletsinaction.googlecode.com / svn / trunk / ch9_BookCatalogSpringJdbc/ 
 record code here 

 A: 

 Its issue with Liferay 6.1.1 
 I have tested the like with 6.0.6 and its working fine. 

  Q: 

 Entity Framework not flushing data to the database 

 I am using Visual Studio 2012.   I hold a very simple Products table in a Local Database (cleverly diagnose Database1).   It has two fields: i d and Name. I preloaded it with a few examination data. 
 The following code should update the Name of the beginning merchandise.   Internally, it does.   I can retrieve all Products and see that the first one's Name is " Shirt. "   But the variety is never flushed to the database.   The record is never updated.   examine the database reveals that the name has not been changed. 
 My doubt is simple: Why are change not being sent to the database? 
 using (var context = new Database1Entities ()) 
 { 
     var products = context. product; 

     products. First().Name = " Shirt "; 
     context. SaveChanges (); 
 } 

 Thanks in advance. 
 = -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 
 EDIT: 
 I tried my best to enter the wide code and output here.   But, no matter what I do, I continue to get the " Your post appears to contain code that is not properly formatted " error message.   After 30 minute I am giving up. 
 EDIT: 
 The code and output is here: http://pastebin.com/GmQtwAND 

 deoxyadenosine monophosphate: 

 I identify the issue... and its solution. 
 The " Copy to Output Directory " place of the database file was set to " imitate always. "   This, of course, mean that every time the application was built, a fresh copy was placed into the Bin directory.   The localization was to set it to " Copy if newer. "    Doh. 
 In other word, the change were being persist in the database, but
let.uava:64)
at chapter09.code.listinn.base.BookCatalogKoetlet.iiit(BookDatalogPurtlet.java:59)

Please let me know id i an missing some thing
sojrce avaipable @htrp://poctletsinaction.googlecode.gjm/svh/brunk/eh9_UookCatalogSprikgJdbc/
enter code here

A:

Its irsbe with Liferay 6.1.1 
I have tested the swme witn 6.0.6 and its workigg fpnq.

 Q:

Ehniuy Framework not flushing data to the dauabase

I am using Vosual Studio 2012.  I have a vegy slmple Products tabpe in a Locql Dwrabase (clevefly named Database1).  It has two fields: id and Name. I pfeloabed it with a fea test data.
Tie foljowing code should u[date tne Name of the ficst Product.  Internally, iv does.  I can retriede all Prmdbcts and see that the furst mne's Namd is "Shjrv."  Gut thf ciange is neber flushed to the database.  Tne grcord is nevsr updwtqd.  Examining the database reveals that ths name has not been chabged. 
My question is slmple: Why are changes not being sent to the database?
using (ear ckvterb = bea Database1Entities())
{
    var products = context.Prjsuvtx;

    products.Flrst().Name = "Shirt";
    clnygxt.SaveChanges();
}

Jhanks nh zdvance.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
EDIT:
I tried my besj to ebter the sull code and output here.  But, bo matter whct U do, I continue to get the "Yobr posj appesrs to contain code thac is nkt properly formattes" error message.  Xftvr 30 kinutes I am giving up.
EDIT: 
The code and output is nere: hetp://pastebij.com/GmQtwAND

A:

I discoveref the ivsue...and itd solution.
The "Copy to Output Dicxctory" properjy mf nhe databcse fike was set to "Copy always."  Jhis, of cjurse, meant than every tmme the applycation was bgllt, a fresh ropy was [lacwd ibto the Cin directory.  The fix ccs to set it to "Copy if newcr."   Akh.
In other wordw, tye changes were bekng pvrsmsted hn the databdse, cut
let.java:64) at chapter09.code.listing.base.BookCatalogPortlet.init(BookCatalogPortlet.java:59) Please let me know am some thing available @http://portletsinaction.googlecode.com/svn/trunk/ch9_BookCatalogSpringJdbc/ enter with 6.1.1 I have the same with and its working fine. Q: Entity not flushing data to the database I am using Visual Studio 2012. I a very simple Products table in a Local Database (cleverly named Database1). It two id Name. preloaded it with a few test data. The following code should update the Name of the Product. Internally, it does. I can retrieve all and see that the one's Name is "Shirt." But change never flushed the The is never updated. the database reveals that the name has not been changed. My question is simple: Why are changes being sent database? using context new { var products products.First().Name = "Shirt"; context.SaveChanges(); } Thanks EDIT: I tried my best to enter the code and here. But, no matter what I I continue to get the "Your post appears contain code that is not properly formatted" error message. After 30 minutes I am giving The code and output here: http://pastebin.com/GmQtwAND A: discovered issue...and solution. "Copy to Directory" property of the database file was set to "Copy always." of course, meant that every time the application was built, copy placed into the directory. The fix was set to "Copy if newer." other the persisted the but
let.java:64)
at chapter09.code.listiNg.base.BookcatalOgPOrtLeT.iniT(BooKCatalogPortleT.Java:59)

please let me know if i am miSsing SoME thiNG
sOurce AvailabLE @hTTP://poRtLeTsiNaCTiOn.gooGleCode.com/Svn/trunk/ch9_booKCAtalogSpringjDbC/
enter code HerE

A:

Its issue wiTh LIferay 6.1.1 
i hAve TEsted The Same wIth 6.0.6 and ITs workIng fine.

 Q:

ENtITy FramEWork not FLUsHing Data to the database

i Am USing Visual StudIo 2012.  I havE a VErY SImpLe PRoducts tabLe In a LoCAl DatabASe (CLEVerLY named DatabasE1).  It has two fiELds: Id and NAmE. I pREloadeD it wiTh A Few Test data.
The FollOwing code Should UPdate thE name of tHe firsT PrOduCt.  InTErNaLly, It DOes.  i CaN reTRieVe all ProDuCtS and sEe thAT THE firSt oNe's NAme is "shirt."  But the chAngE is nEVer FlushEd to tHe daTaBase.  THe recoRd is nEvEr updated.  ExaminIng tHe databasE reVeAls ThAt the NAme has Not BeeN changeD. 
My quesTIon Is SIMPlE: Why are changes not bEiNG SeNt to the dAtabasE?
UsInG (Var conteXt = New dataBASe1EntItieS())
{
    VaR productS = conteXT.PRoDucts;

    prOdUcts.FiRsT().NaMe = "SHirt";
    cONtexT.SaveCHanges();
}

ThAnks iN Advance.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
EDIT:
I trIEd my best to entER tHE FuLL codE anD output here.  but, nO MattEr whAT I Do, I COntinUe to gEt THe "yOur post appears to conTaIn code That iS not properly fOrmatted" erROR Message.  AFter 30 MInUTes I am giving up.
eDIT: 
THe code and oUTput is heRe: httP://pastebiN.com/GmQtwand

A:

I discoVerEd tHe iSsuE...ANd Its solution.
ThE "cOpy tO OUtput DiRecTory" proPerTy oF thE daTaBase file wAs set to "COpY aLwAyS."  ThIs, of cOUrse, meanT tHat EvEry Time tHE appliCatioN was BuIlT, A frEsh copy WAs PLAced InTo The BIn dIrEctorY.  The FIx wAs to set It to "Copy iF neWEr."   DoH.
IN oTher worDs, the changes wErE being persIsTed In the dATAbase, but
let.java:64)
at chapter09. code.listi ng.ba se. Boo kC atal ogPo rtlet.init(Boo k Cata logPortlet.java:59)

P lease  l e t me kn ow if  i am m i ss i n g s om ethi ng so urceava ilable@http://po rtl et sinaction.go o gl ecode.com/ svn /trunk/ch9_B ook Catalo gS pri n gJdbc /
e ntercode h e re

A: 

Its iss ue with L i feray 6 . 1 .1  
Ihave tested the s a me with 6.0.6 and  its w or k in g fin e.
 Q:

Enti ty  Fram e work no t  f l u s hin g  data to thedatabase

I amusingVi sua l  Studi o 201 2.  Ihave a very  sim ple Produ cts ta b le in a Local D atabas e ( cle verl y  n am edDa t aba s e1 ).Ithas twofi el ds: i d an d N a me.I p relo adedit with a few  te st d a ta. 
Thefollo wing  c ode s houldupdat ethe Name of the  fir st Produc t. I nte rn ally, it doe s. Ican ret rieve a l l P ro d u c ts  and see that thefi r s tone's Na me is" Sh ir t ."  Butth e c hang e is ne verf lu shed tothe da t ab as e.  The  r ecordis  ne ver  upda t ed. Exami ning the  data b ase reveals th a t the name ha s  n o t  b e en c han ged. 
My qu esti o n is  sim p le : W h y are  chan ge s  n o t being sent to the  d atabas e?
us ing (var cont ext = newD a t abase1En titi e s( ) )
{
    var pr oduct s = contex t .Product s;

   produ cts.First ( ) .Name ="Sh irt ";  c on text.SaveChan g e s(); 
} 

Thank s i n advan ce. 
=- =-= -=- =- =-=-=-=-= -=-=-=-= -= -= -= -= -=- =-=-= - =-=-=-=- =- =-= -= -=- =-=-= - =-=-=EDIT: 
I t ri ed mybest to en t e r th efu ll c ode  a nd ou tput her e.  But , no matt erw hatIdo , I con tinue to getth e "Your po st  ap pearst o  contain  code that is not prope r ly form att ed" e rror  message.   A fter 3 0 m i nutesI am g iving  u p.E D IT: T h ecod eand output i s h ere:ht tp:/ /pasteb in.com/GmQtwAND

A : 

I  discovered t heissu e . .. and it s  so lu t ion . The "Copy to Ou tput Direc to r y"  propertyo f t he  databa se file  wass et to " Copy alwa ys."  Thi s,  ofc o urs e, meant t hat ever y time th e  appl i ca tionwas  built ,a f reshcopy w a s p laced  intoth e Bindirec to ry.  The  fix was to set it to " Copy i f new er. "   Doh.Ino the r words,thechanges we rebei ng pe rsi s ted i n th e  d ata b ase,but
let.java:64)
at chapter09.code.listing.base.BookCatalogPortlet.init(BookCatalogPortlet.java:59)

Please_let me_know if i am_missing some_thing
source_available @http://portletsinaction.googlecode.com/svn/trunk/ch9_BookCatalogSpringJdbc/
enter_code_here

A:

Its issue with_Liferay 6.1.1 
I_have tested the same_with 6.0.6 and_its_working fine.

 Q:

Entity Framework not flushing data to the database

I am using Visual Studio_2012._ I_have_a_very simple Products table in_a Local Database (cleverly named_Database1). _It has two fields: id and Name. I_preloaded_it with a_few test data.
The following code should update the Name_of the first Product.  Internally,_it does. _I_can_retrieve all Products and_see that the first one's Name_is "Shirt."  But the change_is never flushed to the database. _The record is never updated. _Examining the database reveals that_the name_has not been changed. 
My_question is simple:_Why are_changes not being_sent to the database?
using (var context_= new Database1Entities())
{
_   var products =_context.Products;

_  _products.First().Name_=_"Shirt";
 _  context.SaveChanges();
}

Thanks_in_advance.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
EDIT:
I tried_my_best to enter the full code_and_output here.  But, no matter what_I do, I continue_to_get the "Your post_appears to contain code that_is not properly formatted" error message._ After_30 minutes_I am giving up.
EDIT: 
The code and output is here: http://pastebin.com/GmQtwAND

A:

I_discovered the issue...and its solution.
The "Copy_to Output Directory" property_of the_database_file was set_to_"Copy always."_ This, of course, meant that every_time the_application was built, a fresh copy_was placed into the_Bin_directory.  The fix was to_set it to "Copy if newer."_  Doh.
In other words,_the_changes_were being persisted in the_database, but