Closed cdesch closed 6 years ago
lol. Simply fixed by using camel case.
defmodule MsSqlTest.DemoCategory do
use Ecto.Schema
@primary_key {:DemoCategoryKey, :uuid, autogenerate: false}
schema "DemoCategory" do
#field :DemoCategoryKey, :uuid
field :Name, :string # Defaults to type :string
field :CategoryNo, :integer
field :Description, :string
end
end
I have a database table with camel case column names.
How do I handle the capital letters?
Here is what I used for a schema:
Expected Behavior
Query the record
Current Behavior
Your Environment