IDwTable.UpdateKeyInPlace Property
.NET Standard 2.x
Gets or sets whether the key column can be updated in place or the row has to be deleted and reinserted.
This property is used in .NET DataStore.
Namespace: DWNet.Data
Assembly: DWNet.Data.dll
Syntax
bool UpdateKeyInPlace { get; set; }
Property Value
System.Boolean
This value determines the syntax .NET DataStore generates when the value of a key column is modified:
Yes -- Use the UPDATE statement when the key is changed so that the key is updated in place.
No -- Use a DELETE and an INSERT statement when the key is changed.
Examples
The following code example demonstrates how to get the DataWindow.Table.UpdateKeyInPlace property.
using DWNet.Data;
using System;
namespace Appeon.ApiDoc.IDwTableExamples
{
public class UpdateKeyInPlaceExample
{
private readonly SchoolContext _context;
public UpdateKeyInPlaceExample(SchoolContext context)
{
_context = context;
}
public void Example()
{
// Creates a new DataStore object.
var course = new DataStore("d_course", _context);
// Gets the DataWindow.Table.UpdateKeyInPlace property.
bool updateKeyInPlace = course.DwMeta.DataWindow.Table.UpdateKeyInPlace;
Console.WriteLine("UpdateKeyInPlace = {0}", updateKeyInPlace);
/*This code produces the following output:
UpdateKeyInPlace = False
*/
}
}
}
Applies to
.NET Standard
2.x