public override string ToString()
            {
                var sb = new StringBuilder();

                ConnectionStringBuilder.Run(this, sb);
                return(sb.ToString());
            }
        public string CacheVisitor()
        {
            var sb = new StringBuilder();

            _cachedObjectVisitor.Run(_yueluo, sb);
            return(sb.ToString());
        }
示例#3
0
        public Task <string> FormatAsync(SavingEventResult result)
        {
            var sb = new StringBuilder();

            Visitor.Run(result, sb);
            var re = sb.ToString();

            return(Task.FromResult(re));
        }
            public static DataConnectionModel FromString(string connectionString)
            {
                var dic = connectionString.Split(';')
                          .Where(x => !string.IsNullOrEmpty(x))
                          .Select(x => x.Split('='))
                          .ToDictionary(x => x[0], x => x[1]);
                var re = new DataConnectionModel();

                ConnectionStringConstructor.Run(re, dic);
                return(re);
            }