Posts

How to create Data model from Sql Server

Image
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)         ...

Select2 dropdown validation message handling

Good day guys!! In my point of view select2 is the best way to create editable drop down and also it is very easy to manage. I had faced some issues when implemented this to my project. While we put jquery validator on it, validation message is not showing on select2 drop down. for avoiding this issue just add "ignore:[]"   in the validation function for example:  var $checkoutForm = $('#vendorcountyForm').validate({             errorClass: errorClass,             errorElement: errorElement,             highlight: function (element) {                 $(element).parent().removeClass('state-success').addClass("state-error");                 $(element).removeClass('valid');             },                    unhighligh...