I have all of the data in the code below defined in XAML:
<dds:DomainDataSource x:Name="ddsContAttachment" QueryName="GetMContAttachment" AutoLoad="True" LoadSize="20">
<dds:DomainDataSource.DomainContext>
<employee:ContractSrv />
</dds:DomainDataSource.DomainContext>
<dds:DomainDataSource.SortDescriptors>
<filter:SortDescriptor PropertyPath="wContId" Direction="Ascending" />
<filter:SortDescriptor PropertyPath="wSeqId" Direction="Ascending" />
</dds:DomainDataSource.SortDescriptors>
</dds:DomainDataSource>
How do I insert a DB row without filing DataForm in the code above?
Best Answer
In your code-behind, you should be able to do the following: