Пример #1
0
        public void ConstructorSetsName()
        {
            var columnName = "ObjectID";

            var columnAttribute = new ColumnAttribute(columnName);

            Assert.Equal(columnName, columnAttribute.Name);
        }
Пример #2
0
        public void ConstructorSetsAllowUpdate()
        {
            var columnAttribute = new ColumnAttribute("Foo", allowInsert: false, allowUpdate: true);

            Assert.True(columnAttribute.AllowUpdate);
        }