EntityConnectionExtensions.ToSqlInsert method
namespace: Serenity.Data assembly: Serenity.Net.Entity
Converts the entity to an SqlInsert object by setting only the assigned fields.
public static SqlInsert ToSqlInsert(this IRow row)
| parameter | description |
|---|---|
| row | The row with field values to set in new record (must be in TrackAssignments mode). |
Return Value
SqlInsert object
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | row is null |
See Also
- class SqlInsert
- interface IRow
- class EntityConnectionExtensions