Exemple #1
0
        internal void RemoveWhiteSpace(IEntityPropertySetInterceptorArgs args)
        {
            if (args.EntityProperty.DataType != typeof(string) || args.Value ==  null)
                return;

            args.Value = ((string) args.Value).Trim();
        }
Exemple #2
0
        internal void RemoveWhiteSpace(IEntityPropertySetInterceptorArgs args)
        {
            if (args.EntityProperty.DataType != typeof(string) || args.Value == null)
            {
                return;
            }

            args.Value = ((string)args.Value).Trim();
        }