nhlpa / Sequel

.NET SQL builder that emulates writing SQL.
MIT License
18 stars 3 forks source link

Insert Failed #4

Closed oghenez closed 4 years ago

oghenez commented 5 years ago

This insert

var sqlBuilder = new SqlBuilder()
  .Insert("dbo.Test")
  .Columns("Name", "Salary")
  .Values("'John'", "50").Values("'Jane'", "100");

failed with the following error

BC30456 'Columns' is not a member of 'SqlBuilder'.

tokmendoza commented 4 years ago

This insert

var sqlBuilder = new SqlBuilder()
  .Insert("dbo.Test")
  .Columns("Name", "Salary")
  .Values("'John'", "50").Values("'Jane'", "100");

failed with the following error

BC30456 'Columns' is not a member of 'SqlBuilder'.

Use ".Into" instead of ".Columns"

pimbrouwers commented 4 years ago

@tokmendoza Thank you!