[CLOSED] transaction aborted

Page 3 of 3 FirstFirst 123
  1. #21
    Hi,

    If your data contains 5 records only that timeout increasing will not help you because ajax request for 5 request cannot be executed 30 sec.
    I think the problem in your data entity. Does your data entity have reference on another entities (or collection of such entitites)? Can you provide screenshot of your model?
  2. #22
    Quote Originally Posted by vladimir View Post
    Hi,

    If your data contains 5 records only that timeout increasing will not help you because ajax request for 5 request cannot be executed 30 sec.
    I think the problem in your data entity. Does your data entity have reference on another entities (or collection of such entitites)? Can you provide screenshot of your model?
    Hi, Yes !my data entity has several references.....can you suggest of another way of solving this issue..
  3. #23
    Hi,

    You can add JsonIgnore to those properties to prevent its serialization
    [Newtonsoft.Json.JsonIgnore]
    or just select required properties
    var data = from design in this.DBContext.EmployeeDesignations
    select new{
        design.Property1,
        design.Property2,
        design.Property3,
    };
  4. #24
    Quote Originally Posted by vladimir View Post
    hi,

    you can add jsonignore to those properties to prevent its serialization
    [newtonsoft.json.jsonignore]
    or just select required properties
    var data = from design in this.dbcontext.employeedesignations
    select new{
        design.property1,
        design.property2,
        design.property3,
    };
    hi.
    Thanx, this works for tables with few columns, am having trouble with a grid which has got several columns say 20; meaning my code will be big.....

    Regards
  5. #25
    Hi,

    Well, create in your business entity separate method which convert it to serializable method
    public object ConvertToSerializable()
    {
             return new {
                   this.Property1,
                   this.Property2,
                   this.Property3
             };
    }
    and use it in your queries
    var data = from design in this.dbcontext.employeedesignations
    select design.ConvertToSerializable();
Page 3 of 3 FirstFirst 123

Similar Threads

  1. [CLOSED] Transaction Aborted
    By majunior in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 21, 2011, 12:42 PM
  2. [CLOSED] Transaction Aborted
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 23, 2011, 8:32 AM
  3. Transaction aborted
    By norphos in forum 1.x Help
    Replies: 0
    Last Post: Jul 11, 2011, 11:47 AM
  4. [CLOSED] Transaction aborted
    By Vasudhaika in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 05, 2010, 10:11 AM
  5. [CLOSED] [0.8.1] Transaction Aborted
    By cobiscorp in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Aug 28, 2010, 6:58 AM

Tags for this Thread

Posting Permissions