コード例 #1
0
 public void CatSetLength()
 {
     var hbm = new HbmMapKey();
     var mapper = new MapKeyMapper(hbm);
     mapper.Length(55);
     hbm.length.Should().Be("55");
 }
コード例 #2
0
        public void CatSetLength()
        {
            var hbm    = new HbmMapKey();
            var mapper = new MapKeyMapper(hbm);

            mapper.Length(55);
            hbm.length.Should().Be("55");
        }
コード例 #3
0
        public void WhenSetBasicColumnValuesThroughShortCutThenMergeColumn()
        {
            var mapping = new HbmMapKey();
            var mapper = new MapKeyMapper(mapping);
            mapper.Column("pizza");
            mapper.Length(50);

            mapping.Items.Should().Be.Null();
            mapping.column.Should().Be("pizza");
            mapping.length.Should().Be("50");
        }
コード例 #4
0
        public void WhenSetBasicColumnValuesThroughShortCutThenMergeColumn()
        {
            var mapping = new HbmMapKey();
            var mapper  = new MapKeyMapper(mapping);

            mapper.Column("pizza");
            mapper.Length(50);

            mapping.Items.Should().Be.Null();
            mapping.column.Should().Be("pizza");
            mapping.length.Should().Be("50");
        }