ScriptCreate() 공개 메소드

public ScriptCreate ( ) : string
리턴 string
예제 #1
0
        public void Assembly_WithPermissionSetCases(string permissionSet, string scriptedPermissionSet) {
            var assembly = new SqlAssembly(permissionSet, "SchemazenAssembly");
            assembly.Files.Add(new KeyValuePair<string, byte[]>("mydll", new byte[0]));

		    var expected = @"CREATE ASSEMBLY [SchemazenAssembly]
FROM 0x
WITH PERMISSION_SET = " + scriptedPermissionSet;
		    Assert.AreEqual(expected, assembly.ScriptCreate());
		}