コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        protected virtual string GetLeftString()
        {
            if (!OmitsAbbreviationNaming)
            {
                if (string.IsNullOrEmpty(Abbreviation))
                {
                    var _split  = _namingService.ExceptReserved(Namespace.Split('.'));
                    var _prefix = _namingService.Abbreviate(_split.GetValueOrDefault((_split.Length - 1), string.Empty));

                    return(string.Format("{0}sp", _prefix.ToLower()));
                }

                return(string.Format("{0}sp", _namingService.Abbreviate(Abbreviation).ToLower()));
            }

            return("sp");
        }