How to create Data model from Sql Server
Hey everyone wishing you a good day!! I hope last session was really helped somebody. Today i have got new thing while i searched in google. so i would like to share this thinks to you. If somebody got help it will make me more happy. My friend, also my colleague he found this code. So without any delay let me start... If we follow Data model concept in our project instead of entity framework (C#), then we have to create each and every models from dB. if the table is big then you will irritate and spoil whole day. No worries we can do it in easy way. 1 If table consist value then how we make data model? Open Sql Server Take new query under your dB Copy, paste, execute this code DECLARE @Jsondata varchar(MAX)=( select * from [dbo].County FOR JSON PATH,INCLUDE_NULL_VALUES) ...