0

でAttachToを使用して、以下のように私は、定義されたいくつかのクラスを持っている:私が最初にそれを照会せずにDataServiceContextのにオブジェクトを追加するAttachToを使用したい含まれるのEntitySet

public class Table 
{ 

    [Key] 
    public string Name { get; set; } 

    [Contained] 
    public IList<TableEntity> Entities { get; set; } 
} 

public class TableEntity 
{ 
    [Key] 
    public string Partition { get; set; } 
} 

。これどうやってするの?

答えて

0

私は

context.AttachTo("Tables(\'TableName\')/Entities", tableEntityInstance); 

ない非常にエレガントをすることによって、これを行うことができたが、それは動作します。

関連する問題