LightSwitch HTML - sava data on WCF RIA DataWorkspace, call CRUD methods on DataService

376 views Asked by At

I have the follow problem: I have a DataSource (GiriDataServiceData2) coming from a WCF RIA service using POCO entities.

In a screen based on the table/query of this DataSource I make some modification and I'd like to apply those.

myapp.applyChanges seems not useful and I expected that LS call my CRUD WCF RIA methods..

Some one can help me? THANKS!!

Here an example of my CRUD Methods

 #region CRUD methods Briciola

    [Query(IsDefault = true)]
    public IQueryable<BriciolaEntity> GetBriciolaData()
    {
        // Todo            
        return null;
    }

    [Query(IsDefault = false, IsComposable = false)]
    public IQueryable<BriciolaEntity> GetBriciolaDataByIdTappa(int? IdTappa)
    {
        // Todo
        return BuildTappa(IdTappa.Value)[0].Briciole.AsQueryable();            
    }

    public void UpdateBriciolaEntity(BriciolaEntity giro)
    {
        // Todo
    }

    public void InsertBriciolaEntity(BriciolaEntity giro)
    {
        // Todo
    }

    #endregion
0

There are 0 answers