Metodo DbPropertyValues.SetValues (Object)
[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]
Imposta i valori di questo dizionario leggendo i valori fuori dall'oggetto specificato. L'oggetto specificato può essere di qualsiasi tipo. Verrà letta qualsiasi proprietà sull'oggetto con un nome che corrisponde a un nome di proprietà nel dizionario che può essere letta. Le altre proprietà verranno ignorate. Questo consente, ad esempio, di copiare proprietà da oggetti DTO (Data Transfer Object) semplici.
Spazio dei nomi: System.Data.Entity.Infrastructure
Assembly: EntityFramework (in EntityFramework.dll)
Sintassi
'Dichiarazione
<SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId := "obj", _
Justification := "Naming is intentional.")> _
Public Sub SetValues ( _
obj As Object _
)
'Utilizzo
Dim instance As DbPropertyValues
Dim obj As Object
instance.SetValues(obj)
[SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "obj",
Justification = "Naming is intentional.")]
public void SetValues(
Object obj
)
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1720:IdentifiersShouldNotContainTypeNames", MessageId = L"obj",
Justification = L"Naming is intentional.")]
public:
void SetValues(
Object^ obj
)
[<SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "obj",
Justification = "Naming is intentional.")>]
member SetValues :
obj:Object -> unit
public function SetValues(
obj : Object
)
Parametri
- obj
Tipo: System.Object
Oggetto da cui leggere i dati.