Coder Social home page Coder Social logo

bssframework's People

Contributors

akonit avatar aleshchev avatar dmarkovkin avatar funtik avatar iatsuta avatar ivan-luxoft avatar klimenkoav avatar komazzz avatar nikitaegorov avatar nzuev avatar rulia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bssframework's Issues

Add DateDiff support

public class DateTimeMethodsHqlGenerator : BaseHqlGeneratorForMethod
{
        public DateTimeMethodsHqlGenerator()
        {
            this.SupportedMethods = new[] { ReflectionHelper.GetMethodDefinition((DateTime x) => x.DiffDays(DateTime.MinValue)) };
        }

        public override HqlTreeNode BuildHql(MethodInfo method, Expression targetObject, ReadOnlyCollection<Expression> arguments, HqlTreeBuilder treeBuilder, IHqlExpressionVisitor visitor)
        {
            return treeBuilder.MethodCall("DiffDays", visitor.Visit(arguments[0]).AsExpression(), visitor.Visit(arguments[1]).AsExpression());
        }
    }
}


 this.RegisterFunction("DiffDays", new SQLFunctionTemplate(NHibernateUtil.Int32, "DATEDIFF(day,?1,?2)"));

NHibernateSetupObject ignore custom NHibSessionEnvironment

    public INHibernateSetupObject SetEnvironment<TNHibSessionEnvironment>()
        where TNHibSessionEnvironment : NHibSessionEnvironment
    {
        this.SetEnvironmentAction = sc => sc.AddSingleton<NHibSessionEnvironment, ~~~NHibSessionEnvironment~~~>();

        return this;
    }

Add DefaultBLLFactory to DI

I want to do it something like this

public class Test
{
   public Test(IDefaultBllFactory bllFactory)
   {
      this.bll = bllFactory.Create<Employee>();
   }
}

Support default fetch syntax

Current fetch syntax vary abstract f => f.Select(z => z.Initiator).Select(z => z.Owner)
Please add support NHib syntax f => f.Fetch(z => z.Initiator).Fetch(z => z.Owner)

IRepositoryFactory for unsecure entities

Throw exception

Unable to resolve service for type 'Framework.SecuritySystem.IDomainSecurityService`2[Currency, SecurityOperationCode]' while at
tempting to activate 'DAL.RepositoryFactory`1[Currency]'.

Fetch for domian objects that in ValueObject types doesn't work

Describe the bug
For example, we have class that has value object type property

public class DomainClass1 : AuditPersistentDomainObjectBase 
{
    public virtual Component? Component { get; set; }
}

// where Component is 
public class Component : ValueObject
{
    public virtual DomainClass2? DomainClass2 { get; protected set; }
}

And fetch for this classes structure doesn't work, inspite on Nnhibernate Support.

...
bll.GetUnsecureQueryable(f => f.SelectNested(x => x.Component ).Select(x => x!.DomainClass2)).ToList();
...

As result low performance and big amount of useless requests.

To Reproduce
For reproducing use same classes structure as described above

Expected behavior
Fetch must work, amount of requests to database must decrease

Issue with rename principal

If you change the name of the principal in the configurator to a name that already exists, the system will give an error, but save the changes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.