0
ria 서비스는 어떻게 이런 종류의 일을합니까?ria 서비스에는 T-SQL을 실행하기위한 sqlclient SqlCommand와 같은 것이 있습니까?
using (SqlConnection connection = new SqlConnection(connectionString))
{
string TSQL="update products set price=price*1.03 where category='computer books'";
SqlCommand command = new SqlCommand(TSQL, connection);
command.Connection.Open();
command.ExecuteNonQuery();
}
감사합니다, 마크
안녕 Serhii, 그래서 ... 나는 모든 "컴퓨터 도서"를 클라이언트에 가져온 다음 가격을 업데이트 한 다음 변경 사항을 제출해야합니까? tsql "update"를 직접 실행할 수있는 기능이 필요했습니다. (클라이언트를 업데이트하기 위해 데이터를 가져 오지 않아도됩니다.) 리아에있는 건 뭐니? – markE
> 리아에있는 건 뭐니? 아니요, 현재 버전의 WCF RIA Services 용입니다. –
OK ... 감사합니다 Serhii. – markE