A
A
Alex Fedorov2022-02-09 16:11:57
C++ / C#
Alex Fedorov, 2022-02-09 16:11:57

Entity framework INSERT?

Hello. There is a database where the column is called reward_type , and the data type of this column is violation_reward_type

HasPostgresEnum(null, "violation_reward_type", new[] { "charity", "reward", "no_reward" })

HasPostgresEnum(null, "incident_status", new[] { "pending", "consideration", "confirmed", "rejected", "paid" })


ViolationRequest vr = new ViolationRequest {Id = i, UserId = 20, OptimizerId = 21, DriverId = 21, ModeratorId = 21, TypeId = 13, AsbtRegionId = 5, AsbtDistrictId = 5, IncidentDate = DateTime.Now, ConfirmedDate = DateTime.Now, RejectedDate = DateTime.Now, Latitude = 54.123123, Longitude = 52.123123, Address = "dsada", ViolationDescription = "dsadad", reward_type = , status = ,FilesDir = "asdasdad", DisplayOnFeed = false, Reason = "dasdasd", Mark = 5, CreatedDate = DateTime.Now, ModifiedDate = DateTime.Now, IsDeleted = false };


What should I write in reward_type and status ?
What does this data insert look like??

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question