コード例 #1
0
 public bool Equals(FilterDefinitionMapping other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.attributes, attributes) &&
         other.parameters.ContentEquals(parameters);
 }
コード例 #2
0
 FilterDefinitionMapping IFilterDefinition.GetFilterMapping()
 {
     var mapping = new FilterDefinitionMapping();
     mapping.Set(x => x.Name, Layer.Defaults, filterName);
     mapping.Set(x => x.Condition, Layer.Defaults, filterCondition);
     foreach (var pair in Parameters)
     {
         mapping.Parameters.Add(pair);
     }
     return mapping;
 }
コード例 #3
0
 public FilterDefinitionMapping GetFilterMapping()
 {
     var mapping = new FilterDefinitionMapping();
     mapping.Name = filterName;
     mapping.Condition = filterCondition;
     foreach (var pair in Parameters)
     {
         mapping.Parameters.Add(pair);
     }
     return mapping;
 }
コード例 #4
0
 public bool Equals(FilterDefinitionMapping other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.attributes, attributes) &&
            other.parameters.ContentEquals(parameters));
 }
コード例 #5
0
 public void ShouldWriteTheFilterDefinitions()
 {
     var filterDefinition = new FilterDefinitionMapping();
     filterDefinition.Name = "sid";
     filterDefinition.Parameters.Add("george", NHibernateUtil.Int32);
     XmlFilterDefinitionWriter writer = new XmlFilterDefinitionWriter();
     writer.VerifyXml(filterDefinition)
         .RootElement.HasName("filter-def")
         .HasAttribute("name", "sid")
         .Element("filter-param")
         .HasAttribute("name", "george")
         .HasAttribute("type", "Int32");
 }
コード例 #6
0
 public virtual void ProcessFilterDefinition(FilterDefinitionMapping mapping)
 {
 }
コード例 #7
0
 public virtual void Visit(FilterDefinitionMapping mapping)
 {
 }
コード例 #8
0
 public virtual void Visit(FilterDefinitionMapping mapping)
 {
 }
コード例 #9
0
 public virtual void ProcessFilterDefinition(FilterDefinitionMapping mapping)
 {
 }
コード例 #10
0
 public void AddFilter(FilterDefinitionMapping filterMapping)
 {
     filters.Add(filterMapping);
 }