コード例 #1
0
ファイル: EntityBase.cs プロジェクト: ValdimarThor/Cocktail
        internal void RemoveWhiteSpace(IEntityPropertySetInterceptorArgs args)
        {
            if (args.EntityProperty.DataType != typeof(string) || args.Value ==  null)
                return;

            args.Value = ((string) args.Value).Trim();
        }
コード例 #2
0
ファイル: EntityBase.cs プロジェクト: markgould/Punch
        internal void RemoveWhiteSpace(IEntityPropertySetInterceptorArgs args)
        {
            if (args.EntityProperty.DataType != typeof(string) || args.Value == null)
            {
                return;
            }

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