really couldn't resist ;-))
-Markus
On 8/29/08, goodwill [EMAIL PROTECTED] wrote:
I only wish somebody could finally write a book for all these. I think
DHH's Agile Web on Rails play a very big portion of why rails is so
successful.
On Aug 29, 6:32 pm, Markus Zywitza [EMAIL PROTECTED] wrote
was just stating a general remark that we could be a little
more helpful for those that don't track all those different projects so
closely.
On Fri, Aug 29, 2008 at 3:11 PM, Markus Zywitza [EMAIL PROTECTED]
wrote:
But I talked of books, not of the online docs.
On 8/29/08, Roelof Blom
Does MR know how to make a Kit from an ID? I use ARDataBind for it
when I use AR, you'll need a specialized binder when using NH
directly.
-Markus
2008/9/11 Jan Limpens [EMAIL PROTECTED]
now I am doing this:
// themeFromForm has no Kit, etc.. because they are abstract
Articles,
In contrary to the elephant, each part of Castle is useful on its own. If
you need a cylinder, you'll only have to touch the leg...
Therefore depending on what you need, you should look at (in order)
ActiveRecord: Online docs, NH docs, blogs
MonoRail: Blogs and docs
this series is a nice
trunk version of NH, what kind
of patches?
Thanks!
On Tue, Oct 21, 2008 at 12:33 PM, Markus Zywitza [EMAIL PROTECTED]
wrote:
Please use the NH2.0 branch.
I just updated it to current trunk (building on net-2.0 with nant 0.85).
I will keep updating it from time to time until 1.0
Try with
Cascade = ManyRelationCascadeEnum.AllDeleteOrphan
And consider removing the BelongsTo completely. There is normally no need to
navigate from Item to ShoppingCart.
Here is my mapping for a similar model:
[ActiveRecord]
public class ShoppingCart
{
private Guid id;
private string
, Markus Zywitza [EMAIL PROTECTED] wrote:
Try with
Cascade = ManyRelationCascadeEnum.AllDeleteOrphan
And consider removing the BelongsTo completely. There is normally no need
to
navigate from Item to ShoppingCart.
Here is my mapping for a similar model:
[ActiveRecord]
public
. Anyone have any ideas?
Thanks,
Kyle
On Oct 28, 3:13 am, Markus Zywitza [EMAIL PROTECTED] wrote:
Try with
Cascade = ManyRelationCascadeEnum.AllDeleteOrphan
And consider removing the BelongsTo completely. There is normally no need
to
navigate from Item to ShoppingCart.
Here is my
to
figure out how to persist the changes.
On Oct 28, 12:10 pm, Markus Zywitza [EMAIL PROTECTED]
wrote:
I'm dumb...
AllDeleteOrphan only deletes Items that have no more cart, but that isn't
the case here. Did you try to simple delete the item via ARMediator after
removing it from
First: Inverse means that adding or removing to the collection does exactly
nothing. The collection won't be persisted by NH.
Addendum: Having inverse=true on a onesided relation is therefore not a good
idea, you can only add items directly via SQL.
-Markus
at it. But don't
nail me to a date.
-Markus
2008/10/31 Kyle West [EMAIL PROTECTED]
the Id is a int (identity).
I tried adding the relationtype but it made the whole framework fail, no
idea why yet.
On Thu, Oct 30, 2008 at 3:10 AM, Markus Zywitza [EMAIL PROTECTED]wrote:
Does your item class have
Silly idea: Are you sure you delete data between tests?
-Markus
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Castle Project Users group.
To post to this group, send email to castle-project-users@googlegroups.com
Hello
Earlier today I commited a patch to ActiveRecord that restored the behaviour
of SessionScope with respect to flushing. This change was crucial for a
release because it prevents user from having to flush manually when using
session scopes.
I also want to change TransactionScope to use
What wasn't clear to you?
I am still reviewing AR docs, but I thought that it is relatively clear with
the link to the xml config reference. Should I add a paragraph that says
that initialization must occur for all types? Or do you think that a
complete example is better?
-Markus
2008/11/6
WindowsIdentity.GetCurrent().Name;
-Markus
2008/11/6 Gabriel Mancini de Campos [EMAIL PROTECTED]
Hello
Somebody knows how can i get the current User (in my session),
inside a NHibernate Interceptor ??
Thanks all
--~--~-~--~~~---~--~~
You received this
As a sidenote: Without the SDK configured properly in NAnt, it might build a
project because csc and msbuild are part of the framework. Other tools, like
resgen and gacutil are in the SDK only, so it fails for gac-install (Tim
Barcz) or the Validator project that uses resgen to compile the error
http://www.castleproject.org/activerecord/documentation/trunk/manual/attributedocs/Generated_PrimaryKeyAttribute.html
2008/11/18 Welkson Renny de Medeiros [EMAIL PROTECTED]
Hi Ricardo!
See the same problem:
,
including the blobs, and there's not way to set Lazy=true.
Thanks,
Dan
On Wed, Nov 19, 2008 at 3:12 PM, Markus Zywitza [EMAIL PROTECTED]
wrote:
You attach the object to a different session. Dirty checking uses
first-level-cache which is tied to the session. NH must therefore perform an
update
Did you read the documentation article?
You have two possibilities:
Declaring multiple configs with baseclasses. You can then simply use
ActiveRecordMediatorMyAltenativeDBClass.Save(entity);
You could even use
ActiveRecordMediator.Save(entity);
AR determines the required SessionFactory by
model it is the
only way to use differents session factories, you are right, as you
said before...
thanks again
Ricardo
2008/11/22 Markus Zywitza [EMAIL PROTECTED]:
You're looking for this page:
http://www.castleproject.org/activerecord/documentation/trunk/advanced
couldn't just link it
here :-(
-Markus
2008/12/2 Gabriel Mancini de Campos [EMAIL PROTECTED]
yes, theres identical
On Dec 2, 6:37 am, Markus Zywitza [EMAIL PROTECTED] wrote:
DifferentDatabaseScope is the preferred way for such a scenario, since
table
structure and hence AR classes
DifferentDatabaseScope is the preferred way for such a scenario, since table
structure and hence AR classes are identical fro all databases.
-Markus
2008/12/2 josh robb [EMAIL PROTECTED]
There is also DifferentDatabaseScope...
On Tue, Dec 2, 2008 at 7:03 AM, Ricardo Borges [EMAIL PROTECTED]
in all places?
On Dec 2, 9:19 am, Markus Zywitza [EMAIL PROTECTED] wrote:
From Unit Tests:
SqlConnection conn = CreateSqlConnection();
using(conn)
{
conn.Open();
using(new DifferentDatabaseScope(conn))
{
blog.Create();
}
}
See
\trunk\ActiveRecord
a filter or a interceptor?
how i made this tecnic no intrusion code? some idea?
On 2 dez, 17:00, Markus Zywitza [EMAIL PROTECTED] wrote:
You can use it like any other SessionScope. For example store the
connection
string in the HTTP session and use session per request
AFAIK there is no CASE in HQL. But since you're querying values, not
objects, I'd rather go for a SQL query in your case.
-Markus
2008/12/4 M Kenyon II [EMAIL PROTECTED]
I am doing a report that sums hours for several employees, based on a
grouping per week. I want to find how much overtime
If you use
sum(max(0,dtl.Hours-40)) as Overtime
you don't need a case-statement.
-Markus
2008/12/9 M Kenyon II [EMAIL PROTECTED]
I would like to do this:
select
DATEPART(wk,
trn.TransactionDate) AS Week,
Didn't try, but SQL2005 has only an aggregate max function, while HQL has a
max-function that returns the largest argument.
-Markus
2008/12/10 M Kenyon II qwert...@yahoo.com
That doesn't work as a SQL statement, does it work in HQL?
--~--~-~--~~~---~--~~
There is a branch for this, called NH2 IIRC. It is a bit out of date with
respect to trunk (2 months or so) but functionable.
The current trunk contains a private-patched NH-trunk in between 2.0.1 and
now. AFAIK this was needed for Donjon. Hammett knows better for what it is
needed in detail.
That's debugging. Please do connect to the IIS process and debug it.
My guess is: ARFetch(Region)Region region expects an numeric ID and gets
All. Validate by choosing another Region.
-Markus
2008/12/18 M Kenyon II qwert...@yahoo.com
My options were:
Year: 2008
Class: 2
Region: All
are not
persisted :/
/Mark
On Jan 8, 3:18 pm, Markus Zywitza markus.zywi...@gmail.com wrote:
2009/1/8 Mark Jensen don...@gmail.com:
[HasMany(typeof(Post),
Table = Posts,
ColumnKey = BlogId,
Access = PropertyAccess.NosetterCamelcase
Do you use MSSQL Identity for your PKs?
-Markus
2009/1/8 Mark Jensen don...@gmail.com:
BTW. when I Add a new Post the BlogID is zero when I persist this way
Blog.Save();
On Jan 8, 3:18 pm, Markus Zywitza markus.zywi...@gmail.com wrote:
2009/1/8 Mark Jensen don...@gmail.com
8, 3:51 pm, Markus Zywitza markus.zywi...@gmail.com wrote:
GuidComb is nearly as fast as Identity. With AR/NH its even faster
because Identity requires NH to hit the DB when you call Save()
instead of flushing all at once. This also has side effects to
cascading, what is why I asked.
If you
(../../
AppConfig.xml);
Assembly asm = Assembly.Load(myDomain);
ActiveRecordStarter.Initialize(asm, source);
On Jan 8, 4:10 pm, Markus Zywitza markus.zywi...@gmail.com wrote:
You have to recreate the schema. It creates a table to store the next hi to
use.
2009/1/8 Mark Jensen don...@gmail.com
/1/9 Mark Jensen don...@gmail.com:
I have switched over to Guids (GuidComb) instead
Now the foreignkey in Post is just guid.empty :/ when I create a new
Blog and add a Post to it.
On Jan 9, 1:19 pm, Markus Zywitza markus.zywi...@gmail.com wrote:
Here is my setup/teardown
().
On Jan 9, 3:00 pm, Markus Zywitza markus.zywi...@gmail.com wrote:
schema
generation:http://www.castleproject.org/activerecord/documentation/trunk/usersgu...
When you create a new Post, it's ID is Guid.Empty. That's just fine,
as this is the unsaved value. When the post is saved and flushed
Then why do have the BlogId property in there? Simply discard it.
-Markus
2009/1/12 Mark Jensen don...@gmail.com:
haven't tested it yet, but is it really required to make it
bidirectional for this to work ?
because I only need it to go one way :/
On Jan 10, 2:41 pm, Markus Zywitza
So when would you consider to use bidirectional association ?
When you need to access the objects via both directions.
-Markus
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Castle Project Users group.
To post to
Most people use trunk because that is the version that is stable and alive :-)
Some subprojects will be released indidually soon, but it looks like
that there will be no Castle 1.0 as such, but DynamicProxy 2.0,
Windsor 1.0 etc.
-Markus
2009/1/12 floyd floyd...@gmail.com:
Hi all,
The
from installation to computer. Because it is a many-to-one
association, I could omit any special code and simply left it as a
public property.
-Markus
2009/1/12 Mark Jensen don...@gmail.com:
haha, yeah :P
but do you have an example when this could be relevant :)
On Jan 12, 3:59 pm, Markus
This should work fine:
1) You load parent and all associated childs in non-flushing sessionscope.
2) More childs are added. No one calls save or something, so new
childs are still transient.
3) On Save-button pressed, call save on parent and cascade changes to child.
4) On Cancel-button presses,
Agreed, NH has grown some more cascade styles in the meantime...
Please open a donjon issue, preferably with patch and tests :-)
-Markus
2009/1/16 Mark Jensen don...@gmail.com:
Hi
I can se that there is a AllDeleteOrphan but why isn't there a
DeleteOrphan?
From what I know, this is
Are the docs here
http://www.castleproject.org/container/facilities/trunk/wcf/index.html
complete and actual?
-Markus
2009/1/17 Craig Neuwirt cneuw...@gmail.com:
I am preparing to release the WCF Integration Facility in the next few weeks
and wanted to gather any feedback, requests, wishes
[ActiveRecord(Where=IsDeleted=0)]
public class MyEntity
{
//...
}
2009/1/18 D_Guidi diegogu...@gmail.com:
I'm searching for a way to delete logically all my data from db, avoid
phisical deletion of table rows, and in the old castle forum i've
found a simple-but-working solution:
Hi all
I'm planning to support NH 2.x event system in ActiveRecord and have
created a specification document for this:
http://using.castleproject.org/display/AR/NHEventListenerSpecs
Please tell me what you think and if you have any other needs
regarding the NH event architecture.
-Markus
of looking for assembly level attributes. If it's the model,
then assembly lvl attributes seems better.
On Mon, Jan 19, 2009 at 11:04 AM, Markus Zywitza
markus.zywi...@gmail.com wrote:
Hi all
I'm planning to support NH 2.x event system in ActiveRecord and have
created a specification document
You lose nothing with dropping ActiveRecordBase but convenience.
But keep in mind:
1) AR classes without ARBase make good DTOs, but still bad domain classes.
2) Generic repositories are an antipattern. A repository should
encapsulate the knowledge of an aggregate's persistence details. That
the repository.
-Markus
2009/1/26 Mark Jensen don...@gmail.com:
Hi Markus
Could you explain the contradictions a bit more for me?
thanks :)
On Jan 26, 1:22 pm, Markus Zywitza markus.zywi...@gmail.com wrote:
You lose nothing with dropping ActiveRecordBase but convenience.
But keep in mind:
1) AR
and thereby
bringing the system down.
you could probably refactor yourself out of this problem, but still...
/Mark
On Jan 26, 3:55 pm, Markus Zywitza markus.zywi...@gmail.com wrote:
Code from the article you linked:
public virtual T FindOne(params ICriterion[] criteria
Sorry for the delay.
Can you please elaborate on what you need to do?
Any checks that are done by NH (not-null, uniqueness, version etc.)
are only performed while flushing. Calling Save() won't do anything
within a SessionScope when the object is already persistent (this is
the case when you
Hints:
HQL: http://www.nhforge.org/doc/nh/en/#queryhql-joins
Criteria: http://www.nhforge.org/doc/nh/en/#querycriteria-associations
The use of HQL and Criteria queries is explained in the AR docs.
-Markus
2009/2/24 Mark Jensen don...@gmail.com:
Hi
Can someone show me how i could make this
Sorry for the delay, I'm into some other work currently.
The integration of NH Event Listeners will still take a while unless
someone else sends a patch. Meanwhile, you can workaround by
subclassing SessionFactoryHolder and overriding RegisterRootType. This
gives you access to the Configuration
I added it to the documentation issue at donjon.
-Markus
2009/3/3 Flominator flomina...@gmx.net:
Hi,
some days ago I found out, that Castle doesn't care, if setters,
getters or even whole properties were marked as private. Now I wonder
why all tutorials on the Castle pages don't declare
What's your opinion?
I think it's stable enough and we dropped 2.0 support nonetheless.
-Markus
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Castle Project Users group.
To post to this group, send email to
Please see here:
http://nhforge.org/doc/nh/en/index.html#mapping-types
I'd try to make a backing private property or field of type Byte[] persisted
as BinaryBlob.
If you don't want that for design reasons, you could define a IUserType for
the PortletConfiguration class. Even better would be a
Take a look at the BinaryFormatter and MemoryStream classes.
-Markus
2009/3/19 klawry kla...@visient.com
Markus,
Thanks for your reply. I think you're on the right track - I found
another post mentioning the use of Byte[] with BinaryBlob.
The only problem is that I can't find any
2009/3/19 Markus Zywitza markus.zywi...@gmail.com
Take a look at the BinaryFormatter and MemoryStream classes.
-Markus
2009/3/19 klawry kla...@visient.com
Markus,
Thanks for your reply. I think you're on the right track - I found
another post mentioning the use of Byte[] with BinaryBlob
[CompositeKey] must be used instead of [PrimaryKey] on the class using the
key, not the key class itself. See
http://www.castleproject.org/activerecord/documentation/trunk/usersguide/pks.html#CompositePK
for details. If this helps you, we would be grateful if you rectify the wiki
page.
Thanks,
I have loggers in all complicated tests. Some simply verify that there is
logging used at all. Others use ConsoleLogger to help finding a good break
point and condition in case of failures. That cuts debugger time by half at
least.
I always use DI and inject StreamLoggers and ConsoleLoggers into
Add UniqueKey=some_identifier to all properties whose combination should
be unique.
-Markus
2009/4/1 Flominator flomina...@gmx.net
Hi,
I'm talking about the following database structure:
MEASUREMENTS
|
--CHANNELS
|
--- MEASURANDS
CHANNELS
AR doesn't know about BindingLists and Grids. Have the list call
entity.Delete() or ActiveRecordMediatorEntity.Delete(entity).
-Markus
2009/4/7 vekaz vek...@gmail.com
Hi,
First day with ActiveRecord, hence the noobish question:
How do I delete a record, without querying database to find
Hi Flo,
if I understood the problem correctly, Measurand is a value type without a
reference to the Channel entity it belongs to. I set value type into quotes
because I don't believe that they qualify for a value type. I rather think
it should be an entity in the channel aggregate.
Anyway,
Please open an issue at donjon with a small example or better, a failing
test case.
Anyway, you should reconsider your session management approach. As soon as
there is an exception (validation error for example), the session held by
the scope is useless. A single session for the whole app is
Is this property virtual?
-Markus
2009/4/22 TrentCioran trentcio...@gmail.com
actualizada.Endosos
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Castle Project Users group.
To post to this group, send email to
Hm, what version are you using (trunk, RCx)? If it is RCx, can you try to
update to trunk?
-Markus
2009/4/23 TrentCioran trentcio...@gmail.com
Sorry, I mean Markus
lol, i'm so sorry...
On 22 abr, 14:39, TrentCioran trentcio...@gmail.com wrote:
Hi Marcus,
I have tried with the
Unfortunately, I cannot compile your code due to a missing base class.
However, I found that my smoke tests fail when I changed my lazy properties
to auto properties.
Can you please try to use properties with an explicit backing field?
-Markus
2009/4/23 Markus Zywitza markus.zywi...@gmail.com
This is because SessionScope has to open a NH transaction implicitly (I
stopped counting how often I cursed NH2.x for making transactions
mandatory...). NH opens a DB transaction for it. If your isolation level is
repeatable read, SSMS is locked out because SQLServer waits for the
transaction to
Having three types (application, category and package) reference each other
bidirectionally is not really a good idea. At least, one side of each
relation should be marked as inverse. Additionally, you are getting into
trouble as soon as you are updating or deleting data with such a model.
I
. after a update() or save
(). So the DB transaction would not last too long and the same with
locks the rows if using isolation level Read committed
Is that possible? and do you how to to achive that?
On Apr 29, 3:42 pm, Markus Zywitza markus.zywi...@gmail.com wrote:
The transaction is opened
but not enough when the
DB in relatively loaded (20-25 rows per table with the corresponding
relations).
Any help please??
Best regards!
On Apr 28, 9:21 pm, Markus Zywitza markus.zywi...@gmail.com wrote:
Having three types (application, category and package) reference each
other
Is this a bidirectional association? If yes, is the other end set to
inverse=true?
Are you sure that you don't have a hidden try-catch-block somewhere that
catches an exception and call transactionScope.VoteRollback()? This is a
more common problem than most people can imagine.
If none of the
On 21 Apr., 14:08, Markus Zywitza markus.zywi...@gmail.com wrote:
Hi Flo,
if I understood the problem correctly, Measurand is a value type
without a
reference to the Channel entity it belongs to. I set value type into
quotes
because I don't believe that they qualify for a value type. I
That's expected, the query uses an outer join, thus yielding 11 rows in the
result. Please search for DistinctRootEntityResultTransformer and NHibernate
for details.
-Markus
2009/4/30 chitech khuon...@gmail.com
Let say I got this code:
[ActiveRecord]
public class Case
{
On 2 Apr., 11:03, Markus Zywitza markus.zywi...@gmail.com wrote:
Make the channelId available as a column in Measurand. A non-update,
non-insert property suffices, you need the UniqueKey value only for
creating
the DDL.
-Markus
2009/4/2 Flominator flomina..@gmx.net
How do I
Hi Flo
2009/5/4 Flominator flomina...@gmx.net
1. I have one TransactionScope for every row of data, which means 30
measurands (one for each channel). The method that opens and disposes
the TransactionScope gets the measurands and an enumerator containing
my channels. It iterates over the
However, how can I query all those many-to-many relations?? I mean,
the relations are stored in a intermediate table that I should not
query (or should I?) so how can I find all the OperatingSystem linked
with a specific FileInstance?
Did you read the docs about queries? It is relatively
Hi Flo
answers inline
2009/5/6 Flominator flomina...@gmx.net:
1. Is there any way to stop NHibernate from opening too many
sessions?
AR by default opens a NH session per operation. NH opens a db
connection per session, but disconnects and reconnects it per
operation.
If you use a
There is a possibility, but it is not very elegant. You can use
DifferentDatabaseScope with your own provided IDbConnection, which
includes the username and password. You will have to manage the
connection youself such as this:
using (IDbConnection conn = new SqlConnection(...))
using (var scope
performance gain, i will spend at least two days
figuring out what to do.
Thanks for the help. We will evaluate our second option to use the
same database connection for different users
On 7 Geg, 11:38, Markus Zywitza markus.zywi...@gmail.com wrote:
There is a possibility, but it is not very
Yes, but not yesterday evening, when I was doing the release...
-Markus
2009/5/9 Ayende Rahien aye...@ayende.com:
Markus,
What sort of permissions do you need?
You are a release technician in the project
On Sat, May 9, 2009 at 12:15 PM, Markus Zywitza markus.zywi...@gmail.com
wrote:
I
Release is now also available on Sourceforge.net:
http://sourceforge.net/project/showfiles.php?group_id=124416
-Markus
2009/5/9 Ayende Rahien aye...@ayende.com:
oh, okay
On Sat, May 9, 2009 at 1:21 PM, Markus Zywitza markus.zywi...@gmail.com
wrote:
Yes, but not yesterday evening, when I
Rossi j...@jonorossi.com:
Thanks for getting a release out there.
You said you have scheduled the next release for the end of May. Are you
waiting for the GA of NH2.1 for the RTM release of AR2.0?
On Sat, May 9, 2009 at 7:03 AM, Markus Zywitza markus.zywi...@gmail.com
wrote:
Hi Castle Users
weekend,
Flo
On May 6, 11:44 am, Markus Zywitza markus.zywi...@gmail.com wrote:
Hi Flo
answers inline
2009/5/6 Flominator flomina..@gmx.net: 1. Is there any way to stop
NHibernate from opening too many
sessions?
AR by default opens a NH session per operation. NH opens a db
This one from Ben Lovell is still my favorite:
http://benl.wordpress.com/2008/03/27/incremental-development-with-monorail/
It uses MR after the IController-change and is therefore quite actual
and it starts with unit and acceptance testing from the beginning.
-Markus
2009/5/13 Kcube
(Measurand) and typeof
(ActiveRecordBase) but both brought no Measurand entries to the
database :(
I checked with NHProf and found all relevant queries listed there. It
looks like the statelessSession wasn't committed. Any ideas?
Regards,
Flo
On 14 Mai, 09:23, Markus Zywitza markus.zywi
You have a few possibilities:
1) If you are not using lazy loading, a WinForms application works
well without SessionScopes. This opens a session per operation with
instant refreshes per read.
2) If you are using large amounts of data, you will need lazy loading
and session scopes. In this
It depends.
If you are a pseudo-DDD type, go along with naked NH, Repositories,
pretended persistence ignorance and virtual properties and default
constructors for non-ignorable persistence needs.
If you are accepting that there is a database, prefer having mappings
with your code and value the
And what about
ManilaPayroll.BAL.dll
which is the assembly you are trying to load for initialization?
2009/5/26 Bhumip bhumiph...@gmail.com:
Hi John,
Following is the list of dlls in my bin folder.
Castle.ActiveRecord.dll
Castle.Components.Validator.dll
Castle.Core.dll
2009/5/26 Michael.d michael.dadash...@gmail.com:
Hmm,
I cant believe nobody in this community have build a simple Master/
Detail form using Databinding
Or have I posted my question in wrong group???
I never build a Forms app, most Castle users are MonoRail followers
rather than Databinding
business logic of payroll system.
Thanks,
Bhumip
On May 27, 12:17 pm, Markus Zywitza markus.zywi...@gmail.com wrote:
And what about
ManilaPayroll.BAL.dll
which is the assembly you are trying to load for initialization?
2009/5/26 Bhumip bhumiph...@gmail.com:
Hi John,
Following
work well in this situation but I'm not
sure how to configure
it or if it even works with a HasMany on the other side of the
relation. Assuming that
my domains A, B, and C never have conflicting integer primary keys,
this shouldn't be
an issue correct?
On May 27, 10:56 am, Markus Zywitza
Wrong question, wrong answer...
It's neither Linq2SQL nor Linq2objects. L2SQL is not only LINQ but a
LINQ provider on top of MS mapping wizards. LINQ2AR is a wrapper
around LINQ2NH (or NHLinq), which are LINQ providers for NHibernate.
In the end, it means that you can use ActiveRecord with the
2009/5/28 James Curran james.cur...@gmail.com:
1) AR - NH - MSSQL (plus others, which we'll ignore for now)
2) AR - LINQ - NH - MSSQL, et al.
It's rather:
LINQ - AR - NH - RDBMS
In option 1, you can query the DB with HQL and (Detached)Criteria
queries. In 2, you can also use LINQ query
barking up the wrong tree here?
--
Eric
On May 29, 3:33 pm, Markus Zywitza markus.zywi...@gmail.com wrote:
Sounds like these threads share a SessionScope and thus it's
Transaction. You should rather have a SessionScope per request. You
can then tweak that threading behaviour by using
With assigned IDs, AR cannot know whether the cascaded record exists.
It tries to update, but doesn't find any row for updating. It also
cannot assume a new row because the row count of 0 may also indicate a
stale object due to a version or timestamp field (concurrent change
with optimistic
2009/5/31 James Curran james.cur...@gmail.com:
That not particularly relevant. Yes, MS has said that there won't be
anymore updates to Linq2Sql--- However, AR NH are open-source
projects --- Updates to them can stop at any moment without any
notice.Of course -- we are only pretending to
Not really, you can also use collections of simple types etc. Check
the Element and ElementType properties of the HasMany-attribute.
-Markus
2009/6/1 Jonathon Rossi j...@jonorossi.com:
Role would have to be an ActiveRecord class to be used with HasMany.
Think about how you'd do this in the
with assigned IDs.
Understood now?
-Markus
2009/6/2 raghavsri raghavendra...@gmail.com:
Hi thanks for the reply
its not very clear to me.. it sounds like ,when cascaded record
exists.. we cannot use assigned attribute..
On Jun 1, 10:51 pm, Markus Zywitza markus.zywi...@gmail.com wrote
Out of my head, I cannot say whether it is an AR or NH bug. Usage
seems ok. Workaround is using the Where-property as shown below.
Please open a Donjon-issue on this.
-Markus
[HasMany(typeof(Photo), Table=Image, ColumnKey=CountryId,
Inverse=true,
List has a consructor that takes an IEnumerable. Arrays implement IEnumerable.
-Markus
2009/6/6 Cesar Sanz the.email.tr...@gmail.com:
Thanx for replying... but, can you explain me a little further..
Obviously ListClient clients = new ListClient(Client.FindAll()); does
not work, right?
How
try with:
[HasMany(typeof(Dokument), ColumnKey = PacijentID, Table
= Dokument, *Lazy=true*)]
public *virtual* IListDokument Dokuments
{...}
That should be enough, provided you are using SessionScope.
-Markus
2009/6/8 vekaz turkovic vek...@gmail.com:
I tried removing all the
1 - 100 of 295 matches
Mail list logo