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;
 }
 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));
 }
 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");
 }
 public virtual void ProcessFilterDefinition(FilterDefinitionMapping mapping)
 {
 }
 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);
 }