by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    avifatal
    @avifatal
    Any idea...?
    Olmo del Corral
    @olmobrutall
    Either the SQL is slow of you have a deadlock due to transactions
    avifatal
    @avifatal
    Hi,
    I am trying to work with this WYSIWYG editor: https://github.com/jpuri/react-draft-wysiwyg
    Added to package.json: "react-draft-wysiwyg" : "^1.9.9"
    importing import { Editor } from '../../../node_modules/react-draft-wysiwyg';
    The compiler ask me to allowJs so i added it so compiler options, after I built the project I got 300 js errors.
    It is not possible to add native js react based components?
    Thanks
    Olmo del Corral
    @olmobrutall
    Your need to declare them because we use typescript strict, but you can declare q module as any with a few lines of code
    Or get the typing it it exist
    avifatal
    @avifatal
    Can you give a link to some reference about that
    avifatal
    @avifatal
    Hi
    public Lite<CommissionTierEntity> CommissionTier { get; set; }
    CommissionTierEntity is Embedded entity but yet I need a reference / foreign key to it.
    Olmo del Corral
    @olmobrutall
    You can not, make it normal entity then
    avifatal
    @avifatal
    Normal entity meand eagre loading, right?
    Olmo del Corral
    @olmobrutall
    If not lite, yes
    The problem is that then you need to garbage collect them
    When removed from an Mlist
    avifatal
    @avifatal
    hmmm, problem, its a bug table
    Olmo del Corral
    @olmobrutall
    But you were linking anyway
    avifatal
    @avifatal
    big
    what do you mean?
    Olmo del Corral
    @olmobrutall
    *Cloning them
    avifatal
    @avifatal
    Commition table will have around 1,000,000 rows in a month
    I want to display the tier in it
    Olmo del Corral
    @olmobrutall
    In s SearchControl is possible
    avifatal
    @avifatal
    I can just save the Id, and in the form display a link to the relevant entity via TS
    Olmo del Corral
    @olmobrutall
    My approach was recalculating it in the query
    it is possible to save the id but not to make a FK
    avifatal
    @avifatal
    I can't calculate the ID at run time, think its a high price to pay
    avifatal
    @avifatal

    Question about transactions and scoping.
    In a s SimpleTask, in a small scope I go

    using (var tr = Transaction.ForceNew(System.Data.IsolationLevel.ReadCommitted)){
     bla bla
    }

    but, when I look at Graph source code I see that it is wrapping each save in a transaction.
    How is Transaction.ForceNew before entity.Exexute suppose to work ?

    Thanks

    avifatal
    @avifatal
    Olmo
    Any chance to get an answer here?
    Tx
    Olmo del Corral
    @olmobrutall
    Hi avi
    tell me if you still have problems
    avifatal
    @avifatal
    Hi,
    I have CustomerAdjustmentRequestEntity that has public MList<CustomerEntity> Customers { get; set; }.
    When CustomerAdjustmentRequestOperation.Save is executing I get an error about: Saving 'CustomerEntity' is controlled by the operations which is true, but Im not saving new customers, just connecting existing ones.
    blob
    Thanks
    Olmo del Corral
    @olmobrutall
    They feel modified for some reason
    Probably the presaving
    avifatal
    @avifatal
    I did not know that MList has fellings... I thougt only Lite (-:
    Anyway I put the debugger in the presaving event and it is not hittign
    avifatal
    @avifatal
    Hitting
    avifatal
    @avifatal
    Any Idea?
    avifatal
    @avifatal
    I get the feeling its something we did yesterday with the framework
    Olmo del Corral
    @olmobrutall
    place a breakpoint on ModifiableEntity.SetSelfModified
    or override SetSelfModified in CustomerEntity
    and place the breakpoint there
    avifatal
    @avifatal
    blob
    This is actually when saving CustomerAdjustmentRequestEntity that has MList<CustomerEntity>
    Olmo del Corral
    @olmobrutall
    The Screenshot doesn't tell me too much
    we didnt change anything yesterday but BuilkInsert
    every has a ModifiedState
    its changed with GraphExplorer.PropagateModifiatoins and entity.SetSelfModified