私はこれについて移動する方法がわからないよ、WCF SQL挿入GUID変換エラー
私はWCFを使用して、私のユーザーのために一意の識別子を追加したいと私は私のクライアントにGUIDを追加するために行くとき、それは、このエラーがスローされますDataContextの
エラー2
引数1: 'ServiceFairy.client' C 'に可能System.Guid' から変換することはできません:プロジェクト\ PremLeague \ ServiceFairy \ Service1.svc \ Visual Studioの 2010 \ \ Users \ユーザージョン\ドキュメント.cs
お手伝いできますか?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Data.SqlClient;
using System.Diagnostics;
namespace ServiceFairy
{
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in code, svc and config file together.
public class Service1 : IService1
{
public List<match> GetAllMatches()
{
matchtableDataContext context = new matchtableDataContext();
var matches = from m in context.matches orderby m.Date select m;
return matches.Take(100).ToList();
}
public List<premtable> GetTable()
{
premContext context = new premContext();
var table = from user in context.premtables orderby user.ID select user;
return table.Take(100).ToList();
}
public Dictionary<Guid, Uri> _clientUris = new Dictionary<Guid, Uri>();
public void Subscribe(Guid clientID, string uri)
{
ClientsDBDataContext context = new ClientsDBDataContext();
context.clients.Insert(clientID);
}
サービスフェアリー? ... –
あなたの質問は不明です –
これはなぜWCFと関係があると思いますか? –