Inheritance: System.Attribute
コード例 #1
0
        public void ConstructorSetsName()
        {
            var name = "Customers";

            var tableAttribute = new TableAttribute(name);

            Assert.Equal(name, tableAttribute.Name);
            Assert.Null(tableAttribute.Schema);
        }
コード例 #2
0
        public void ConstructorSetsSchemaAndName()
        {
            var schema = "dbo";
            var name = "Customers";

            var tableAttribute = new TableAttribute(schema, name);

            Assert.Equal(name, tableAttribute.Name);
            Assert.Equal(schema, tableAttribute.Schema);
        }