Re: [nhusers] Why Rebuild SessionFactory for Every Mapper Change?

2024-08-23 Thread Paulo Quicoli
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

Re: [nhusers] Model compilation question

2021-07-20 Thread Paulo Quicoli
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

Re: [nhusers] NHibernate + Azure SQL database with Azure AD Manage Identity

2021-05-15 Thread Paulo Quicoli
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

Re: [nhusers] Asp.net Core MVC

2021-04-12 Thread Paulo Quicoli
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

Re: [nhusers] Re: Question about Flushing, ISession.IsDirty and need for a commit

2021-02-26 Thread Paulo Quicoli
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

Re: [nhusers] duplicate class/mapping

2020-11-13 Thread Paulo Quicoli
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

Re: [nhusers] Nhibernate async await

2020-10-30 Thread Paulo Quicoli
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

Re: [nhusers] NHibernate with Microsoft.Extensions.DependencyInjection

2020-09-18 Thread Paulo Quicoli
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

Re: [nhusers] Re: Calling Youtubers and Nhibernate technical writers

2017-07-07 Thread Paulo Quicoli
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

Re: [nhusers] NHibernate Shards update with LINQ and QueryOver support

2017-03-24 Thread Paulo Quicoli
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

Re: [nhusers] Unable to cast object of type 'System.Int32' to type 'System.String'

2017-02-15 Thread Paulo Quicoli
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*

Re: [nhusers] Re: [nhibernate-development] NHibernate 4.1.1.GA released

2017-02-02 Thread Paulo Quicoli
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

Re: [nhusers] how to do a dynamic mapping of a database with nhibernate

2017-01-20 Thread Paulo Quicoli
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

Re: [nhusers] Re: not-null error while saving object - backref

2016-12-02 Thread Paulo Quicoli
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

Re: [nhusers] How to handle client timeout exception?

2016-11-18 Thread Paulo Quicoli
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

Re: [nhusers] Is it possible create criteria that generate SQL like this: "SELECT * FROM ({DetachedCriteria}) WHERE {filter}"?

2016-11-07 Thread Paulo Quicoli
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

Re: [nhusers] Insert (Save) call for entity with generated identity triggers inserts for previously made save calls for different entities (without identity) but not for updates

2016-10-17 Thread Paulo Quicoli
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

Re: [nhusers] Re: Nhibernate exception in ASP.Net MVC application

2016-09-29 Thread Paulo Quicoli
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

Re: [nhusers] Re: Nhibernate exception in ASP.Net MVC application

2016-09-27 Thread Paulo Quicoli
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

Re: [nhusers] Nhibernate exception in ASP.Net MVC application

2016-09-27 Thread Paulo Quicoli
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

Re: [nhusers] NHibernate projection to composite dto (QueryOver)

2016-07-12 Thread Paulo Quicoli
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

Re: [nhusers] How escape column names?

2016-06-21 Thread Paulo Quicoli
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

Re: [nhusers] Re: FluentNHibernate - Unable to perform find[SQL: SQL not available]

2016-05-20 Thread Paulo Quicoli
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

Re: [nhusers] Re: FluentNHibernate - Unable to perform find[SQL: SQL not available]

2016-05-13 Thread Paulo Quicoli
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 >

Re: [nhusers] Re: FluentNHibernate - Unable to perform find[SQL: SQL not available]

2016-05-12 Thread Paulo Quicoli
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

Re: [nhusers] Re: FluentNHibernate - Unable to perform find[SQL: SQL not available]

2016-05-10 Thread Paulo Quicoli
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

Re: [nhusers] FluentNHibernate - Unable to perform find[SQL: SQL not available]

2016-05-09 Thread Paulo Quicoli
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

Re: [nhusers] Session Per Request NancyFX

2016-04-18 Thread Paulo Quicoli
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

Re: [nhusers] Session Per Request NancyFX

2016-04-17 Thread Paulo Quicoli
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

Re: [nhusers] Cast exception on update (but not on insert)

2011-11-06 Thread Paulo Quicoli
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

Re: [nhusers] Cast exception on update (but not on insert)

2011-11-05 Thread Paulo Quicoli
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

Re: [nhusers] Re: nHibernate + uNhAddins + Session.Clear

2011-10-17 Thread Paulo Quicoli
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

Re: [nhusers] nHibernate + uNhAddins + Session.Clear

2011-10-17 Thread Paulo Quicoli
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

Re: [nhusers] Avoid same collections for all entities

2011-07-27 Thread Paulo Quicoli
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

Re: [nhusers] NHibernate wpf

2011-07-26 Thread Paulo Quicoli
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

[nhusers] NonUniqueException

2011-06-20 Thread Paulo Quicoli
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

[nhusers] targeting different builds is affecting a save routine

2011-05-31 Thread Paulo Quicoli
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!

Re: [nhusers] Struggling with NHibernate memory consumption.. advise?

2011-05-16 Thread Paulo Quicoli
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

Re: [nhusers] Re: How to working ObservableCollection with NH3.1

2011-04-23 Thread Paulo Quicoli
> > > 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"

[nhusers] ConfOrm, NHibernate 3.2 mapping by code and future...

2011-04-19 Thread Paulo Quicoli
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

Re: [nhusers] Notification

2011-04-07 Thread Paulo Quicoli
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

Re: [nhusers] Re: [Link] [Blog] "NHibernate 3.1 on NuGet - Important Details"

2011-03-14 Thread Paulo Quicoli
-- > 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

Re: [nhusers] a design help

2011-02-18 Thread Paulo Quicoli
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 >&

[nhusers] a design help

2011-02-18 Thread Paulo Quicoli
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

Re: [nhusers] Collection with related association

2011-02-10 Thread Paulo Quicoli
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

Re: [nhusers] How can we map Nhibernate to multiple Database

2011-02-08 Thread Paulo Quicoli
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. > -

[nhusers] help on ConfORM

2011-01-20 Thread Paulo Quicoli
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

Re: [nhusers] Please,how to map a mysql TIME field?

2010-12-29 Thread Paulo Quicoli
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

Re: [nhusers] using confORM, it is fantastic!

2010-12-15 Thread Paulo Quicoli
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

[nhusers] using confORM, it is fantastic!

2010-12-15 Thread Paulo Quicoli
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

Re: [nhusers] NH 3 and Linq

2010-10-20 Thread Paulo Quicoli
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&#

[nhusers] NH 3 and Linq

2010-10-20 Thread Paulo Quicoli
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

Re: [nhusers] old paper from scott ambler

2010-10-13 Thread Paulo Quicoli
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

Re: [nhusers] old paper from scott ambler

2010-10-12 Thread Paulo Quicoli
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 >

[nhusers] old paper from scott ambler

2010-10-11 Thread Paulo Quicoli
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

Re: [nhusers] NHibernate 3.0 Cookbook

2010-09-06 Thread Paulo Quicoli
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"

Re: [nhusers] Try to build universal session manager

2010-08-31 Thread Paulo Quicoli
.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

Re: [nhusers] Dynamic domain model using NHibernate

2010-08-26 Thread Paulo Quicoli
. > 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

Re: [nhusers] Mapping events

2010-08-15 Thread Paulo Quicoli
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! >

Re: [nhusers] Mapping events

2010-08-13 Thread Paulo Quicoli
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

[nhusers] Friends, did you see this? A NH Designer!!!

2010-08-11 Thread 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

Re: [nhusers] property in many-to-many

2010-03-12 Thread Paulo Quicoli
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,

Re: [nhusers] property in many-to-many

2010-03-11 Thread Paulo Quicoli
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

Re: [nhusers] [OT] ConfORM : DDD API, Proposals ?

2010-03-11 Thread Paulo Quicoli
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

[nhusers] property in many-to-many

2010-03-11 Thread Paulo Quicoli
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

Re: [nhusers] Schema Management Tool

2010-02-17 Thread Paulo Quicoli
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

Re: [nhusers] Re: Best Practices for Sessions in Web Services?

2010-01-28 Thread Paulo Quicoli
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: >

Re: [nhusers] Fwd: Report generation with Nhibernate

2010-01-11 Thread Paulo Quicoli
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

Re: [nhusers] Long conversation ASP.NET MVC

2010-01-05 Thread Paulo Quicoli
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

Re: [nhusers] Re: switching to an open source db, which do you guys advice?

2009-12-25 Thread Paulo Quicoli
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

Re: [nhusers] switching to an open source db, which do you guys advice?

2009-12-23 Thread Paulo Quicoli
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

Re: [nhusers] NHForge wiki and accounts

2009-12-22 Thread Paulo Quicoli
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

Re: [nhusers] how to detect foreign key violation exception ?

2009-12-18 Thread Paulo Quicoli
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

Re: [nhusers] how to detect foreign key violation exception ?

2009-12-18 Thread Paulo Quicoli
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

Re: [nhusers] how to detect foreign key violation exception ?

2009-12-18 Thread Paulo Quicoli
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

[nhusers] how to detect foreign key violation exception ?

2009-12-18 Thread Paulo Quicoli
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

Re: [nhusers] ISession ASP.NET

2009-12-15 Thread Paulo Quicoli
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ó

Re: [nhusers] ISession ASP.NET

2009-12-14 Thread Paulo Quicoli
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

Re: [nhusers] NHibernate.Caches

2009-12-01 Thread Paulo Quicoli
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

[nhusers] NHibernate.Caches

2009-12-01 Thread Paulo Quicoli
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

Re: [nhusers] Re: NHibernate road map

2009-11-21 Thread Paulo Quicoli
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

[nhusers] NHibernate road map

2009-11-20 Thread Paulo Quicoli
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

[nhusers] detecting changes in Component class, on IPostUpdateEventListener

2009-10-22 Thread Paulo Quicoli
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

[nhusers] Re: Doubt about IPostDeleteEventListener

2009-10-22 Thread Paulo Quicoli
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

[nhusers] Re: Doubt about IPostDeleteEventListener

2009-10-22 Thread Paulo Quicoli
> 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: > > > > > >

[nhusers] Re: custom PostUpdate event listener is in looping

2009-10-21 Thread Paulo Quicoli
(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

[nhusers] Doubt about IPostDeleteEventListener

2009-10-21 Thread Paulo Quicoli
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] +

[nhusers] Re: custom PostUpdate event listener is in looping

2009-10-21 Thread Paulo Quicoli
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 = >

[nhusers] Re: custom PostUpdate event listener is in looping

2009-10-21 Thread Paulo Quicoli
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

[nhusers] custom PostUpdate event listener is in looping

2009-10-21 Thread Paulo Quicoli
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

[nhusers] Re: Multi-screen (i.e. multi-session) desktop application guidance

2009-10-20 Thread Paulo Quicoli
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

[nhusers] Re: Nhibernate and Compact framework

2009-09-19 Thread Paulo Quicoli
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. >> >

[nhusers] Re: Is there a benefit in using Level 2 cache with embedded databases?

2009-09-08 Thread Paulo Quicoli
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

[nhusers] Re: Is there a benefit in using Level 2 cache with embedded databases?

2009-09-04 Thread Paulo Quicoli
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? &

[nhusers] Re: Is there a benefit in using Level 2 cache with embedded databases?

2009-09-03 Thread Paulo Quicoli
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

[nhusers] Re: HiLo best practice

2009-09-02 Thread Paulo Quicoli
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

[nhusers] NHibernate cache

2009-07-30 Thread Paulo Quicoli
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

[nhusers] sequenced numbers... how do you implement???

2009-07-20 Thread Paulo Quicoli
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

[nhusers] Re: Audit table and NHibernate events

2009-07-15 Thread Paulo Quicoli
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 > > > > > > > &

[nhusers] Re: Audit table and NHibernate events

2009-07-14 Thread Paulo Quicoli
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   2   >