Click here to Skip to main content
16,008,299 members

Comments by M.Kamran Asim (Top 14 by date)

M.Kamran Asim 4-Apr-20 8:51am View    
Thanks Wendelius for your response. UDT at schema level is working fine. I tested already. But due to some store procedure in production its not possible to move types from packages to schema level. Therefore I have to find solution for package types
M.Kamran Asim 10-Dec-18 15:04pm View    
Try updatesourcerrigger = propertychanged
M.Kamran Asim 25-Nov-18 23:43pm View    
Can you elaborate more. your requirements are confusing. Please if you can share source code, expected input and response.
As I understand you only need data which you had fill during operation, but you are receiving default values of other properties. For example in your BaseCustomerModel you dont want customerId, but you are receiving 0 value in response object, where 0 is meaningful to you.

This is default behavior of CLR, that it will initialize object with default value, but still if you dont need default value of int, double, float etc, make it nullable and ignore nullable in response.
M.Kamran Asim 15-Nov-18 4:00am View    
AllUSStates Property is in wrong place. Why you are using US_State class for multi purpose. US_State act only as a Model, which is signature how you keep data.
while AllUSStates holds data of States. This property is supposed to be part of ViewModel, but in your case it is supposed to be part of windows.cs.

So Move this property to mainwindow, and keep US_State simple. This class will only hold attributes (Public properties).
M.Kamran Asim 14-Nov-18 23:23pm View    
Problem in your code is Get_States is private variable. You need to create public property. Binding only happens with public property. For complete solution see my posted Solution