Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 524987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:37:29+00:00 2026-05-13T08:37:29+00:00

I have a one-to-many relationship within my class model. Example: A single role can

  • 0

I have a one-to-many relationship within my class model.

Example:
A single role can have many permissions attached to it. so have two table one from the role and one for the permissions for each role.

Now i have a role class which in turn has a permission list as a member of that class. When i need to do an update, i instantiate a transactionscope object, and do an update for the role. After that is done and with the transactionscope still open, i open another transactionscope for each permission in the list and close it immediately after the update has been done.

The update for the role works just fine

But, now the problem is that when it tries to instantiate a transactionscope for the first permission on the list it trows an error saying:

Error: Time-out interval must be less than 2^32-2. Parameter name: dueTm
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T08:37:30+00:00Added an answer on May 13, 2026 at 8:37 am

    Ok, i found a solution.

    Scenario:
    I have two base classes for my Business Layer, BaseBLL and BaseListBLL. Each of these classes provided a method that calls an astract method that must be implemented in you concrete class. These classes started a TransactionScope before handing off to the abstract class to perform tasks like update or insert.

    Note: After the BaseListBLL starts off a TransactionScope it calls the method in the BaseBLL that also starts it’s own transaction. This is because, we’ll be inserting or updating a list of classes derived from the BaseBLL which all together are contained in a class derived from BaseListBLL.

    Now for example if we are to update a role in the roles table only one transaction would be started. But now the complexity comes when we have a role object having another class that derives directly from the BaseListBLL.

    A transaction would be started for the list first and another for each BaseBLL object in the list to do all the insert or update.

    So now, after the first insert, the error:

    Error: Time-out interval must be less than 2^32-2. Parameter name: dueTm
    

    is thrown.

    What i did was

    For the list class, i set the TranscationScope object this way:

    TransactionScope ts = new TransactionScope(TransactionScopeOption.Suppress)
    

    and for the other class

    TransactionScope ts = new TransactionScope(TransactionScopeOption.Required, TimeSpan.MaxValue)
    

    The conclusion i have derived is that the error is being thrown because i was using the same transaction created by the BaseBLL derived class from the list. I had to suppress the ambient transaction when it was time to do an update of the list of items.

    I hope this helps someone else.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a one to many relationship between two tables. The many table contains
I have two entities, Entity1 and Entity2, on a one to many relationship. On
I have a few model classes with basic one-to-many relationships. For example, a book
i have two entities named Parent and Child , linked in a one-to-many relationship.
I have a two tables which are linked by a one-to-many relationship. Now I
I have a parent object which has a one to many relationship with an
In my database, Concessions have a many-to-one relationship with Firms (each Concession has a
Lets say I have two tables - child and parent with many-to-one relation. What
I have a parent object which has a one-to-many relationship with an ISet of
Fluent NHibernate Generates invalid columns names within a Many to one relationship. enter public

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.