static bool anyLazyMembers(IClassInspector inspector) { if (inspector.Properties.Any(x => x.LazyLoad)) return true; if (inspector.OneToOnes.Any(x => x.LazyLoad.Equals(Laziness.Proxy) || x.LazyLoad.Equals(Laziness.NoProxy))) return true; if (inspector.References.Any(x => x.LazyLoad.Equals(Laziness.Proxy) || x.LazyLoad.Equals(Laziness.NoProxy))) return true; return inspector.Collections.Any(x => !x.LazyLoad.Equals(Lazy.False)); }
static bool anyLazyMembers(IClassInspector inspector) { if (inspector.Properties.Any(x => x.LazyLoad)) { return(true); } if (inspector.OneToOnes.Any(x => x.LazyLoad.Equals(Laziness.Proxy) || x.LazyLoad.Equals(Laziness.NoProxy))) { return(true); } if (inspector.References.Any(x => x.LazyLoad.Equals(Laziness.Proxy) || x.LazyLoad.Equals(Laziness.NoProxy))) { return(true); } return(inspector.Collections.Any(x => !x.LazyLoad.Equals(Lazy.False))); }
public void CreateDsl() { mapping = new ClassMapping(); inspector = new ClassInspector(mapping); }
public void CreateDsl() { mapping = new ClassMapping(); inspector = new ClassInspector(mapping); }
private bool Check(IClassInspector x) { return(String.IsNullOrWhiteSpace(x.TableName) || x.TableName.Equals("`{0}`".Args(x.EntityType.Name))); }