Hi!
Do your mappings change at run time? To me that's the question, why do you need
to change your database class mappings at run time?
If we take NHibernate out of the scene it's like your database is changing at
runtime, is that true?
Sorry but I'd like to understand your reason for somethin
Hi
Have a look here :
https://ayende.com/blog/2903/real-world-nhibernate-reducing-startup-times-for-large-amount-of-entities
On Tue, 20 Jul 2021, 17:52 Kolli Ayyappa, wrote:
> Hi,
>
> We have model with 300 tables. When initially getting session from session
> factory taking bit time due comp
Hi
I believe you will need to pass to NHibernate a custom ADO.NET connection.
So, you would need to connect to your database using your custom ADO.NET
connection like this:
SqlConnection sqlConnection = new SqlConnection();
sqlConnection = new SqlConnection(ConnectionString);
///
https://doc
Hi
This article here is a good start
https://www.google.com/amp/s/gunnarpeipman.com/aspnet-core-nhibernate/amp/
On Mon, 12 Apr 2021, 08:09 Gregory, wrote:
> Hi all,
>
> I am a complete beginner with NHibernate, and want to use it with Asp.net
> Core MVC. Unfortunately, I cannot find any docu
Hi,
If you are using WPF, I believe you have a view model and model classes
there. This check for changes IMHO is part of your business layer and not
your database layer.
I personally would implement that in my models. If you use Prism you could
make use of SetProperty in you model properties to
Well, check if your mappings aren't load twice...
On Fri, Nov 13, 2020, 06:58 Junior Lapuñete wrote:
> how to solve this error:
> Duplicate class/entity mapping Domain.Entities.Category using mapping by
> code in nhibernate
>
> --
> You received this message because you are subscribed to the Goo
Hi
Open and close a session inside your for each loop and you will be fine
On Fri, Oct 30, 2020, 17:46 Hakan karaoğlu wrote:
> Hi,
>
> I'm using rabbitmq and nhibernate in a .net core project. I run
> asynchronous queries for database operations on some consumers. For
> example, I am sending a
Hi
Is this what you are looking for?
https://gunnarpeipman.com/aspnet-core-nhibernate/
On Fri, Sep 18, 2020, 07:52 eric@gmail.com wrote:
> Trying to use dependency injection with custom NHibernate implementation
> classes, specifically an IConnectionProvider. To be clear, I have NO
> inter
Hi friends, what I see:
EF is getting space because of its 'Core' new version. Microsoft is pushing
this everywhere. NH users should show NH working in .net core project to
get attention.
What do you think about? We could organize 'marketing campaings' for NH.
What I mean is organize a group of p
Wow! Nice!
Em Sex, 24 de mar de 2017 20:00, ggeurts escreveu:
> Hello all,
>
> NHibernate Shards has received some love recently to get QueryOver and
> LINQ queries working. The latest version is available from NuGet.
>
> Kind Regards,
> Gerke.
>
> --
> You received this message because you are
Hi, your problem is here I believe:
*resultado = (string)session.Save(entidade)*;
what do you want return?
2017-02-15 15:07 GMT-02:00 Antonio Kuroki :
> I am tring to do a sample exemple using Fluent NHibernate but i am having
> some dificults
>
> this is my code:
>
> * public class Categoria*
Wow great news!
Em Qui, 2 de fev de 2017 06:26, Oskar Berggren
escreveu:
> Great!
>
> 2017-02-02 1:00 GMT+00:00 Alexander Zaytsev :
>
> NHibernate 4.1.1 is now released.
>
> For a list of resolved issues, see the release notes:
>
> https://github.com/nhibernate/nhibernate-core/blob/4.1.1.GA/rele
Hi,
sorry, I didn't understand you question
2017-01-20 8:24 GMT-02:00 Vandream :
> Hi all,
>
> it's a pleasure for me to post my request in this group,
>
> I am new in nhibernate, and I see that to do the mapping of the database,
> we should rewrite in xml file all the table of database for the
I believe what is missing is the 'inverse' in the mapping.
Em Sex, 2 de dez de 2016 19:31, Ricardo Peres escreveu:
> Can you create a simple, self-contained unit test, with just the minimum
> possible to demonstrate this problem?
>
> RP
>
>
> On Friday, December 2, 2016 at 12:07:26 PM UTC, Flo
you can extend that time in you string connection:
Data Source=.;Initial Catalog=TestDB; Trusted_Connection=true;Asynchronous
Processing=true; Connect Timeout=120;
2016-11-18 14:24 GMT-02:00 Maxim Kovalev :
> Hi!
> We have faced with not-closed transaction on SQL Server.
> How can I catch client
Hi,
when I see things like that, I execute my custom SQL query... I don't see
any problems about it...
2016-11-07 8:59 GMT-02:00 Claudio Cavalcante Tonha :
> Yes. You're right. But I want a generated sql like that
>
> * "SELECT * FROM (SELECT this_.departmentName, this_.companyName FROM
> Depart
In fact, you should avoid identity fields when using NHibernate
Em Seg, 17 de out de 2016 20:33, Gunnar Liljas
escreveu:
> A Save on a new entity with an identity POID will flush any pending
> actions. Updating EntityA in Scenario2 doesn't add any pending actions
> until the commit is called. In
Where exactly does this error occur? when you search for an object? If so,
check how you are searching... are you using SQL sentences for searching?
Do you have a class "Product"? If so, share its mapping
2016-09-29 8:20 GMT-03:00 Waqas Hameed :
> we are getting same error on multiple databas
Very confusing, because the initial error is about a 'Product' invalid
name. Looking to your mapping, you dont have a Product class..
2016-09-27 9:47 GMT-03:00 Waqas Hameed :
> Thanks for reply.
>
> The entity name is PaymentProduct and following is mapping
>
>
> xmlns="urn:nhibernate-mappin
Product class is correctly mapped? please, show us your mapping and
how/where you are starting NH.
2016-09-27 8:37 GMT-03:00 Waqas Hameed :
> Hi,
>
> I am getting N-hibernate exception in ASP.Net MVC application when bulk of
> user accessing application.
>
> Detail : An ExceptionDetail, likely cr
Hello,
When I needed something like that, I constructed my DTO through looping
my result query
Em 11/07/2016 18:32, "Nicolás Mancilla"
escreveu:
> Hello!
>
> As the title says, is it possible to project an entity into a composite
> DTO?
>
> // Entities
> public class Person {
> public
I believe it should work if you are using xml mapping...
if you use fluentNH, I would suggest this:
http://stackoverflow.com/questions/2438491/fluent-nhibernate-and-postgresql-schemametadataupdater-quotetableandcolumns-s
Bye
2016-06-21 11:10 GMT-03:00 Felipe Oriani :
> Hello guys,
>
> I've deve
I'm sorry for taking so long... I was in a trip.
I'm looking it tonight
2016-05-19 3:22 GMT-03:00 Praveen Liyanaarachchi <
pravee...@activegamingmedia.com>:
> Thank you very much. please let me know if you having any problems to
> setting up the project.
>
> On Monday, May 9, 2016 at 7:56:07 P
downloading right now ASAP I get a clue, I tell you.
bye
2016-05-13 0:06 GMT-03:00 Praveen Liyanaarachchi <
pravee...@activegamingmedia.com>:
> Thank you very much. I have created sample project and also included a
> readme file how to setup the environment, hope my readme file is clear
>
would you mind to send me a simple project showing that error? A simple
console application would be enough.
thanks
2016-05-11 21:42 GMT-03:00 Praveen Liyanaarachchi <
pravee...@activegamingmedia.com>:
> I already tried with another table, other-than "user" . so without "user"
> keyword also it
Hi,
I'm not an expert in MySQL but, maybe "user" wouldn't be a reserved word
from the database? I believe you would have to use
.ExposeConfiguration(cfg => SchemaMetadataUpdater.QuoteTableAndColumns);
as suggest this link:
http://stackoverflow.com/questions/1545120/fluent-nhibernate-column-mapp
Hi,
var userM = session.CreateCriteria("usr").List();
I think you don't need this "usr" in CreatCriteria because you are not
using projections... (see:
http://nhibernate.info/doc/nhibernate-reference/querycriteria.html)
*"The Alias() and As() methods simply wrap a projection instance in
anothe
Great Nicolás! I was about to suggest you that Lock().Upgrade() when I got
your successful feedback :)
2016-04-17 18:50 GMT-03:00 Nicolás Mancilla <
nicolasmancillaverg...@gmail.com>:
> I solved my problem.
>
> Previously I used session.Lock(entity, LockMode.Upgrade);, but that throws
> an Sta
Hi,
I believe getlastunusedfolio should lock your table and your transction
scope should be something like lock and wait.
This way the first one in, lock the access and the subsequent requests
keep waiting for the first one to finish...
This is an idea...
Em 17/04/2016 07:18, "Nicolás Mancilla
operties of this POCO object during update?
> Either way, I think I'm posting this problem for the Npgsql developer to
> check.
>
>
> On Sat, Nov 5, 2011 at 5:51 PM, Paulo Quicoli wrote:
>
>> Hello,
>>
>> if you look in the error line, its like a
Hello,
if you look in the error line, its like a Npgsql error...
in /Users/fxjr/Desenvolvimento/
ProjetosOpenSource/Npgsql/NpgsqlSourceRelease/Npgsql2/src/NpgsqlTypes/NpgsqlTypesHelper.cs:608
2011/11/5 Marcelo Zabani
> Hi everyone, I'm facing a apparently very strange problem (I must be doing
ord and so returns the values for the
> entity, it's like NHibernate was caching old values.)
>
> How can I 'force' nHibernate get values from BD in tis case,
> disregarding the values in memory?
>
> Thanks
>
> On 17 out, 14:03, Paulo Quicoli wrote:
> &g
Hi.
You have to say "when" you wanna commit your data... using Session.Flush...
Or, if you are using CpBT, you must set your conversation end mode
2011/10/17 Alexandre
> Hello all!
>
>
> I am using nHibernate + uNhAddins.
>
>
> My repository is:
>
>public class Repository : IReposito
Using attributes I dont now,
but using XML mapping, you specify the sequence name
2011/7/27 Bruno Sanches
> Hi folks,
>
> in the system that I am working we created a base class that is used for
> all entities that we have. This works well, but the PK sequence is the same
> for all entities
Man, I develop using WPF and NHibernate, take a look in a old article of
mine:
http://www.codeproject.com/KB/WPF/WPF_NHibernate_Validator.aspx
2011/7/26 Luigi Clemente
> Hi at all,
> i want to use NHibernate with wpf using the wpf databinding
> capabilities, i've read a lot of articles by Fabio
Hi friends!
We're facing here the NonUniqueException - a different object with the same
identifier value was already associated with the session. Googling about
that we've found almost the same orientations: use of evict. Even using it,
the exception persists.
My domain is like that: class Course
hat way, a save operation is taking about 2 secs.
But, if I change target to "x86", the same save operation gets completed in
less than 1 sec.
I dont know what is causing that. I've ran NHProf and everything is Okay
with NH... same SQL instructions...
Somebody has an idea?
Thanks!
group, send email to
> nhusers+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>
--
Paulo Quicoli
Editor Técnico: .NET Magazine, ClubeDelphi Magazine; Editor: WebMobile
Magazine
www.devmedia.com.br
www.nhibernateb
> > > For more options, visit this group at
> > >http://groups.google.com/group/nhusers?hl=en.
> >
> > --
> > Enviado desde mi dispositivo móvil
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers"
mapping in NHibernate,
or are your thinking about NH 3.2, 3.3. 3.X introduce a replacement for
ConfOrm?
Thanks for you hard work, and thanks for all NHibernate commiters
--
Paulo Quicoli
Editor Técnico: .NET Magazine, ClubeDelphi Magazine; Editor: WebMobile
Magazine
www.devmedia.com.br
www.nhibernate
legroups.com.
> To unsubscribe from this group, send email to
> nhusers+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
--
Paulo Quicoli
Editor Técnico: .NET Magazine, ClubeDelphi Magazine; Editor: WebMobile
Mag
--
> Fabio Maulo
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to nhusers@googlegroups.com.
> To unsubscribe from this group, send email to
> nhusers+unsubscr...@google
of Roles, and so, Teacher and
>> Student inherited Role.
>>
>> What do you think?
>>
>>
>>
>>
>>
>>
>> --
>> Paulo Quicoli
>> Editor Técnico: .NET Magazine, ClubeDelphi Magazine; Editor: WebMobile
>> Magazine
>> www.devmedia.com.br
>&
composition can work. Having a class Teacher wich
points to Person, a class Student wich point to Person, etc...
Or maybe, a Person could have a collection of Roles, and so, Teacher and
Student inherited Role.
What do you think?
--
Paulo Quicoli
Editor Técnico: .NET Magazine, ClubeDelphi
d email to
> nhusers+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>
--
Paulo Quicoli
Editor Técnico: .NET Magazine, ClubeDelphi Magazine; Editor: WebMobile
Magazine
www.devmedia.com.br
www.nhibernatebra
t; "nhusers" group.
> To post to this group, send email to nhusers@googlegroups.com.
> To unsubscribe from this group, send email to
> nhusers+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
-
Property(f =>
f.Path, fm => fm.Length(255)));
});
HbmMapping mappingDocument = mapper.CompileMappingFor(baseEntities);
nhConfig.AddDeserializedMapping(mappingDocument, "Domain");
--
Paulo Quicoli
Editor Técnico: .NET Magazine, ClubeDe
o nhus...@googlegroups.com.
> To unsubscribe from this group, send email to
> nhusers+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
--
Paulo Quicoli
Editor Técnico: .NET Magazine, ClubeDelphi Magazine, WebMob
thank you Fabio!
2010/12/15 Fabio Maulo
> 0 is the default for NH, you don't have to say to NH what it already knows.
>
> On Wed, Dec 15, 2010 at 4:18 PM, Paulo Quicoli wrote:
>
>> Friends, confORM is greate!
>>
>> But I'm not figuring out how t
Friends, confORM is greate!
But I'm not figuring out how to set "unsaved_value=0" for my Id fields...
Someone point me out there?
Thanks!
--
Paulo Quicoli
Editor Técnico: .NET Magazine, ClubeDelphi Magazine, WebMobile Magazine
www.devmedia.com.br
www.nhibernate
Really thanks
2010/10/20 José F. Romaniello
> sessio.Query() <-- and that's returns a queryable of Foo.
> then you can do whatever you want... if you are not familiar with Linq try
> with Linq 101 examples.
>
> 2010/10/20 Paulo Quicoli
>
>> Hi friends... I
simple example? Thanks my friends!
--
Paulo Quicoli
Editor Técnico: .NET Magazine, ClubeDelphi Magazine, WebMobile Magazine
www.devmedia.com.br
www.nhibernatebrasil.net
http://pauloquicoli.spaces.live.com
twitter:@pauloquicoli
--
You received this message because you are subscribed to th
thanks!!!
2010/10/12 Fabio Maulo
> Try here
> http://groups.google.com.ar/group/nhibernate-hispano/files?hl=es
>
> On Tue, Oct 12, 2010 at 10:17 AM, Paulo Quicoli wrote:
>
>> I'm trying to open that page... but I'm stopped on google erros!!
>>
>> &quo
Anyway, thank you so much.. I'm going to keep trying to open website up...
2010/10/11 José F. Romaniello
> Try asking him on twitter
>
> 2010/10/11, Paulo Quicoli :
> > Hi friends,
> >
> > I had a paper from Scott Ambler, called Object Relational Impedance
>
ut? And if so, could please
and me a link for it?
Thanks friends!
--
Paulo Quicoli
Editor Técnico: .NET Magazine, ClubeDelphi Magazine, WebMobile Magazine
www.devmedia.com.br
www.nhibernatebrasil.net
http://pauloquicoli.spaces.live.com
twitter:@pauloquicoli
--
You received this message becau
il to
>> nhusers+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/nhusers?hl=en.
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers"
.com
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>
--
Paulo Quicoli
Editor Técnico: .NET Magazine, ClubeDelphi Magazine, WebMobile Magazine
www.devmedia.com.br
www.nhibernatebrasil.net
http://pauloquicoli.spaces.live.com
twitter:@pauloqu
.
> To unsubscribe from this group, send email to
> nhusers+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>
--
Paulo Quicoli
Editor Técnico: .NET Magazine, ClubeDelphi Magazine, WebMobile Magazine
el model if you want ;)
>
>
> On Fri, Aug 13, 2010 at 4:17 PM, Paulo Quicoli wrote:
>
>> Fabio, can you post something about this please ? your posts about NH are
>> very apreciated here :D
>>
>> 2010/8/13 Diego Mijelshon
>>
>> Hey, I missed that!
>
group.
> To post to this group, send email to nhus...@googlegroups.com.
> To unsubscribe from this group, send email to
> nhusers+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
--
Paulo Quicoli
http://www.mindscape.co.nz/blog/index.php/2010/08/10/announcing-the-mindscape-nhibernate-designer/
This look great! downloading right now!
--
Paulo Quicoli
Editor Técnico: .NET Magazine, ClubeDelphi Magazine, WebMobile Magazine
www.devmedia.com.br
www.nhibernatebrasil.net
http
B, NewProperty }
>
> So, the AB bag in A will be mapped with one-to-many to AB, same for the bag
> in B.
> AB has two many-to-one properties, and the new added one.
> What used to be the collection-id now becomes the id of AB.
>
> Diego
>
>
>
> On Thu, Mar 11,
ey transformation does not need a
> conposite-id to reuse the same table because it has a surrogate key. ;)
>
> 2010/3/11 Paulo Quicoli
>
>> Hi friends...
>>
>> I have a many-many relation, mapped as a idbag. That's ok, its working.
>> But now I need intro
m
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
--
Paulo Quicoli
Editor Técnico: .NET Magazine, ClubeDelphi Magazine, WebMobile Magazine
www.devmedia.com.br
http://pauloquicoli.spaces.live.com
twitter:@pauloquicoli
--
You received th
Hi friends...
I have a many-many relation, mapped as a idbag. That's ok, its working. But
now I need introducing a property in that relation...
how can I do that?
thanks !
--
Paulo Quicoli
Editor Técnico: .NET Magazine, ClubeDelphi Magazine, WebMobile Magazine
www.devmedia.com.br
ake a simple GUI if that was what they
> wanted.
>
> Anyway, if this tool sounds appealing please let me know and I will
> work with the community here to figure out the best way to host the
> source code.
>
> Regards,
>
> Dave Newman
>
> --
> You received this mess
thanks Jason! Nice explanation!
2010/1/28 Sam Kimmel :
> Thanks again Jason. Very helpful information. Will post back to this
> thread once I've had a chance to test everything out.
>
>
> On Jan 28, 8:41 am, Jason Meckley wrote:
>> inline responses
>>
>> On Jan 27, 6:24 pm, Sam Kimmel wrote:
>
Hi,
here we pass list of object to a crystal reports report...
2010/1/11 Harold Wanyama :
>
>
> -- Forwarded message --
> From: Harold Wanyama
> Date: Mon, Jan 11, 2010 at 5:15 PM
> Subject: Report generation with Nhibernate
> To: nhus...@gmail.com
>
>
> Hi all, Iam a newbie in
see CpBT, in uNHAddins
2010/1/5 reggieboy :
> Hello guys,
>
> I am new to nhibernate and currently learning about how to manage a
> long-running session/conversation in an ASP.NET MVC app.
>
> What is the best way to do this?
>
> Thanks
>
>
> --
> You received this message because you are subscrib
I work with Firebird since it was known as Interbase 6. Greate RDBMS. The
greatest feature is it simplicity. For managment tool, we use IBExpert. And
now Firebird futute is very promising, version 3 will offer full suport for
multiple processors in Superserver version.
So, I suggest you to try it
Friend, dont forget Firebird :)
bye.
2009/12/23 Gitted
> my nhibernate project is currently using sql server 2005/8.
>
> I want to switch over to either mysql or postgresql.
>
> Is one more tested then the other? How about connection performance
> etc?
>
> --
>
> You received this message beca
all right
2009/12/21 Fabio Maulo
> Hi all.
>
> We are experimenting a lot of problems with NHForge.
> Now the wiki was hacked.
>
> The wiki should be open to everybody but we should find a solution for
> accounts.
> We having filters at various levels but what is clear (by facts) is that we
> ca
Thanks again Fabio,
I just download updated versions, and I will test now...
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to nhus...@googlegroups.com.
To unsubscribe from this group, send email to
nhusers+unsubs
I'm using NH 2.1.0.1003
2009/12/18 Fabio Maulo
> are you working with NH2.0 or an early 2.1.0Alpha ?
>
>
> 2009/12/18 Paulo Quicoli
>
>> Fábio, my NH version differs from yours. In my case had to do:
>>
>>
>> public class GenericSq
2009/12/18 Fabio Maulo
>
> http://fabiomaulo.blogspot.com/2009/06/improving-ado-exception-management-in.html
>
> 2009/12/18 Paulo Quicoli
>
>> Hi friends, I'm using here NH 2.1.0.1003 and unhAddings to manage my
>> sessions (CpBT).
>>
>> I would
Hi friends, I'm using here NH 2.1.0.1003 and unhAddings to manage my
sessions (CpBT).
I would like to get correct Exception from ADO.NET about foreign key
violation... is there a way to do that?
Before trying that, I was thinking about in my Delete routine, search for
relations, to prevent user of
Sorry Fabio,
I didnt notice Eduardo did a crosspost between NH Users groups :) this will
not happen again.
2009/12/15 Fabio Maulo
> since when this group become a Portuguese group ?
>
> 2009/12/14 Eduardo Costa
>
> Galera,
>>
>> Seguinte, estou utilizando o ISession per request no asp.net. Só
Bem, pra ter certeza do que se passa, vc poderia mostrar pra gente como vc
implementou o session per request. Outra coisa... se os objetos estão em
cache, vc pode dar um Session.Evict(object) pra dizer ao NH que vc não quer
mais o obj no cache. Isso vai forçar o NH a buscar o objeto no banco...
m
thanks
2009/12/1 Vijay Gill
> Yest there is a way to do in config file. Here is the one I use for castle
> ActiveRecord but you can easily see how it can be done in nhibernate config
> file.
>
> Vijay
>
> value="NHibernate.Caches.Prevalence.PrevalenceCacheProvider,
> NHibernate.Caches.Prevalenc
Hi friends,
i just downloaded source of NHibernate.caches project, because i´m
interested about using bamboo.prevalence as cache. I looked inside some unit
tests and
got confused. (I searched form some examples but found nothing).
I see here in TestFixtureSetUp:
XmlConfigurator.Conf
I think he means the new parallel programming features in the CLR [1],
>> > which has nothing to do with WPF. I don't see a relation with
>> > NHibernate either.
>> >
>> > [1]:http://www.infoq.com/news/2008/10/NET-4
>> >
>> > On 20 nov, 2
Hi friends!!!
This one is for developers guys...
Before I do question, let me say I very happy with NHibernate, I understand
keeping it working is a hard job, with no money back... and things are
included as needed... but...
.NET 4 is here, March (they say that). Do you have some plans to make u
Hi friends... again, my fight to EventListeners :) Thanks God we have you
here :)
So, my event listener is working but i noticed when a class has a composite
one in it, i cant get dirty fields 'cause NH show me it as an unique
obejct... so I'm trying something like this:
foreach (var dirtyField
the problem was my version of NH... updated it and now is working :)
thanks again
2009/10/22 Paulo Quicoli
> me too... :/
>
> 2009/10/22 Valeriu Caraulean
>
>
>> The code looks ok.
>> Have mostly same code, it's working as it should.
>>
>> BT
> it to PostDeleteEventListeners collection.
>
> On Wed, Oct 21, 2009 at 9:24 PM, Paulo Quicoli
> wrote:
> > Hi friends...
> >
> > in my custom PostDeleteEventListener I try to persist information about
> > entity deleted, doing that:
> >
> >
> >
(only take care with the
> transaction).
>
> 2009/10/21 Paulo Quicoli
>
>> I just found the problem, i cant flush the second session!!! I found
>> that reading some docs :)
>> Now i have for saving my audity data:
>>
>>
>> var historic
Hi friends...
in my custom PostDeleteEventListener I try to persist information about
entity deleted, doing that:
var session = @event.Session.GetSession();
var sb = new StringBuilder();
for (int i = 0; i <= @event.DeletedState.Count()-1; i++)
{
sb.Append(@event.Persister.PropertyNames[i] +
lizao";
historico.Alteracoes = sb.ToString();
historico.Data = DateTime.Now;
session.Save(historico);
2009/10/21 Paulo Quicoli
> Sorry Fabio, but I didnt get you...
>
> I commented this piece of code:
>
> //var historico = new Historico(); //historico.Classe =
>
orico.Data = DateTime.Now;
//session.Save(historico);
//session.Flush();
and replaced it for a simple MessageBox.Show(sb.ToString());
and everything is right, no loop... so i thing problem is when i save new
entity Historico
2009/10/21 Fabio Maulo
> Same references.
>
> 2009/10/21 Paulo Quico
Hi friends...
My PostUpdate envent listener is checking dirty properties to later save
this changes in other entity,
but, my event got in looping until a stackflow... :/ what I'm doing wrong?
please, this my code:
var dirtyFieldIndexes = @event.Persister.FindDirty(@event.State,
@event.OldState
i have a mdi like here, but i make use of CpBT (Conversation per Business
Transaction) ..
take a look in this:
http://fabiomaulo.blogspot.com/2009/09/nhibernate-in-winform-coupled.html
and:
http://fabiomaulo.blogspot.com/2009/04/spring-in-nhibernates-conversation-per.html
2009/10/20 Everett Mu
you can use db4o, an object database! www.db4o.com
bye
2009/9/19 Mikael Henriksson
> I'd chose to use SQLite with Linq for mobile devices.
> http://sqlite.phxsoftware.com/
>
>
> On Sat, Sep 19, 2009 at 12:33 AM, Fabio Maulo wrote:
>
>> NH is not something you want use in a mobile device.
>>
>
thanks
2009/9/8 V
>
>
> On Sep 4, 11:41 am, Paulo Quicoli wrote:
> > thanks! i got how to integrate it in NH
> >
> > but what about how to configure bamboo? how to set path for cache file?
> >
> > thanks again!
> >
>
> I don't know
thanks! i got how to integrate it in NH
but what about how to configure bamboo? how to set path for cache file?
thanks again!
2009/9/4 V :
>
> On Sep 4, 3:24 am, Paulo Quicoli wrote:
>> hi vijay
>>
>> can you explain me, please, how to configure bamboo prevalence?
&
hi vijay
can you explain me, please, how to configure bamboo prevalence?
2009/9/3 V :
>
> Hi,
>
> I tried NHibernate + Bamboo Prevalence cache and it is working for me
> nicely. But I have one question in my mind. Since I use embedded
> FireBird in my applications (development is done using MS-S
i searched into docs, about "where" clause in hi/lo,
but i didnt find it
2009/9/2 Oskar Berggren :
>
> Have you considered the "where" clause as Fabio suggested, with one
> row per value instead of column-per-value?
>
> From the docs:
>
> hilo
>
> uses a hi/lo algorithm to efficiently generate
Hi friends!
how do i configure NHibernate to make use of Bamboo.Prevalence cache mechanism ?
And, somebody here uses Bamboo for caching ???
thanks!
--
Paulo R. Quicoli
Editor Técnico - ClubeDelphi Magazine - DevMedia
--~--~-~--~~~---~--~~
You received this m
Hi friends!
I have this here: "Order.NumberOfDay" this property int NumberOfDay
represents the number of that order on day its entered.
That number must be sequenced, this mean i cant have two orders out
of sequence, for example 2,5. Well, if
two users are inserting orders at same time, that N
old values! (NH does not
> need a DB roundtrip and just performs an update, the old value is
> never retrieved.)
>
>
> On 14 Jul., 20:47, Paulo Quicoli wrote:
> > thanks!!! I will try to implement that
> >
> > 2009/7/14 Belvasis
> >
> >
> >
> &
l.com>
>
>>
>> The Pre* Event Listeners enable you to exactly do what you want. Since
>> you will get the old and new values of the entities properties as
>> parameters, you can easily save them using another entity.
>>
>> Am 14.07.2009 um 19:36 schri
1 - 100 of 152 matches
Mail list logo