Exemplo n.º 1
0
        public static string GetNamedPipename(string fullServername)
        {
            // All LocalDb endpoints are of the format host\instancename where host is always (LocalDb) (case-insensitive)
            if (!IsLocalDbServer(fullServername))
            {
                throw new Exception("Not a localdb server");
            }
            var localDbInstance = fullServername.ToLowerInvariant().Split('\\')[1];

            return(LocalDb.GetLocalDbConnectionString(localDbInstance));
        }