コード例 #1
0
ファイル: NotLazyLoad.cs プロジェクト: seatwave/Quarks
		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));
		}
コード例 #2
0
        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)));
        }
コード例 #3
0
 public void CreateDsl()
 {
     mapping = new ClassMapping();
     inspector = new ClassInspector(mapping);
 }
コード例 #4
0
 public void CreateDsl()
 {
     mapping   = new ClassMapping();
     inspector = new ClassInspector(mapping);
 }
コード例 #5
0
 private bool Check(IClassInspector x)
 {
     return(String.IsNullOrWhiteSpace(x.TableName) || x.TableName.Equals("`{0}`".Args(x.EntityType.Name)));
 }