public void ShouldCreateTest()
		{
			TableMappingAttribute tableMappingAttribute;

			tableMappingAttribute = new TableMappingAttribute();

			Assert.IsNotNull(tableMappingAttribute);

			tableMappingAttribute.TableName = "x";
			Assert.AreEqual("x", tableMappingAttribute.TableName);

			tableMappingAttribute.SchemaName = "y";
			Assert.AreEqual("y", tableMappingAttribute.SchemaName);

			tableMappingAttribute.IsView = true;
			Assert.AreEqual(true, tableMappingAttribute.IsView);
		}
示例#2
0
		public SqlExpressionVisitor(TableMappingAttribute tableMappingAttribute, ISqlNuance sqlNuance, IUnitOfWork unitOfWork, IDictionary<string, ITacticParameter> tacticParameters)
		{
			if ((object)tableMappingAttribute == null)
				throw new ArgumentNullException(nameof(tableMappingAttribute));

			if ((object)sqlNuance == null)
				throw new ArgumentNullException(nameof(sqlNuance));

			if ((object)unitOfWork == null)
				throw new ArgumentNullException(nameof(unitOfWork));

			if ((object)tacticParameters == null)
				throw new ArgumentNullException(nameof(tacticParameters));

			this.tableMappingAttribute = tableMappingAttribute;
			this.sqlNuance = sqlNuance;
			this.unitOfWork = unitOfWork;
			this.tacticParameters = tacticParameters;
		}