SQL Server で Lightswitch 2013 (C#) を使用して、毎月基本的なデータ入力を行っています。ユーザーが一連の画面にデータを入力した後、SSAS キューブを構築するための一連のタスクを開始するストアド プロシージャをデータベースで実行できるようにしたいと考えています。例えば。usp_DoTasks
そのため、ボタンは「Process Data」と呼ばれ、EBIT 画面にあります。
テーブル挿入などにリンクされていない基本的なストアド プロシージャを呼び出すだけで何も見つからないようです。
using System;
using System.Linq;
using System.IO;
using System.IO.IsolatedStorage;
using System.Collections.Generic;
using System.Configuration;
using Microsoft.LightSwitch;
using Microsoft.LightSwitch.Framework.Client;
using Microsoft.LightSwitch.Presentation;
using Microsoft.LightSwitch.Presentation.Extensions;
namespace LightSwitchApplication
{
public partial class EditableEBiTByYearCountryGrid
{
partial void EditableEBiTByYearCountryGrid_Created()
{
//Set the defaults for the parameters
SelectedYear = this.DataWorkspace.MyData.Years_SingleOrDefault(DateTime.Today.Year);
SelectedCountry = this.DataWorkspace.MyData.SalesCountries_SingleOrDefault(3);
}
partial void ProcessData_Execute()
{
//help???
}
}
}
ありがとう!