Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

buckrogerz 0

@buckrogerz 0
About
Posts
10
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Is Hybrid Work a Good Idea?
    B buckrogerz 0

    hmm yea - if my family and friends were like some of the people I have had to work with, I would only see them digitally and maybe not all if I had any say in it.

    Buckrogerz

    The Lounge tools sharepoint testing collaboration beta-testing

  • Is there a parser for .NET expression trees?
    B buckrogerz 0

    So not sure if this is what your looking for but I used the System.Linq.Expressions namespace to build a dynamic link query to be executed against EF. here is an incomplete sample for syntax example:

    propertyToUse = workingProperty.Substring(0, workingProperty.IndexOf('.'));
    Type propertyToUseType = GetEntityType(propertyToUse, incomingParentType);

                ParameterExpression propertyToUseParameterExpression = Expression.Parameter(propertyToUseType, propertyToUse.Substring(0,1));
                Expression parentExpression = Expression.Property(workingExpression, propertyToUse);
    
                if (parentExpression.Type.IsGenericType &&
                    typeof(IEnumerable<>)
                        .MakeGenericType(parentExpression.Type.GetGenericArguments())
                        .IsAssignableFrom(parentExpression.Type))
                {
                    Expression childExpression = BuildPropertyExpression(propertyToUseParameterExpression,
                        workingProperty, comparisonOperation, compareValue);
                    Type func = typeof(Func<,>);
                    Type genericFunc = func.MakeGenericType(propertyToUseType, typeof(bool));
                    LambdaExpression predicate =
                        Expression.Lambda(genericFunc, childExpression, propertyToUseParameterExpression);
    
                    //we have call the AsQueryable on the collection since we don't have the compiler working for us and we need to use the any method
                    MethodInfo asQueryableMethod = typeof(Queryable).GetMethods()
                        .Where(m => m.Name == "AsQueryable")
                        .Single(m => m.IsGenericMethod)
                        .MakeGenericMethod(propertyToUseType);
                    Expression asQueryableExpression = Expression.Call(null, asQueryableMethod, parentExpression);
    
                    //call the any method with the lambda expression we set up
                    MethodInfo anyMethod = typeof(Queryable).GetMethods()
                        .Where(m => m.Name == "Any")
                        .Single(m => m.GetParameters().Length == 2)
                        .MakeGenericMethod(propertyToUseType);
                    returnValue = Expression.Call(
                        null,
                        anyMethod,
                        asQueryableExpression, //the source
                        predicate); // the lambda expression
                }
    

    There are other fa

    The Lounge csharp question linq com

  • WTF Visual Studio update
    B buckrogerz 0

    WTF is right Nugets that are in Azure are not working for me at the moment

    Buckrogerz

    The Lounge visual-studio csharp announcement

  • Windows 7
    B buckrogerz 0

    yea running VS 2019 on Win 7 with no issues

    Buckrogerz

    The Lounge question

  • We need an official term for a group of software engineers
    B buckrogerz 0

    The responses are very funny unfortunately someone might take this seriously so we need to let identity stay in the political area of our society and not let it enter our profession. Such a sad state but it is what it is for now BTW I would prefer a Dorkal :D

    Buckrogerz

    The Lounge question announcement

  • A Career in Programming which way to go!
    B buckrogerz 0

    I have been doing development for 20+ years and I have seen people or all sorts. The first question you really need to ask yourself before you go any further is "Do you want to be a professional student?". We are not developers we are students! I am also in the US so the atmosphere here may not be the same as in the UK (so there is the gain of salt). I would recommend at least a two degree. This is only to get by the people who think you have to have a degree to program. To that end do you have a partner that can support your family while you do your education full time. I worked full time while I got mine and it would have a lot easier if I had not. After you learn one language the others become easier and easier to learn. It is the fundamentals of CS and the soft skills that are important. I hope this 2 cents helps

    Buckrogerz

    The Lounge career python dotnet collaboration learning

  • Dear Bing...
    B buckrogerz 0

    DuckDuckGo[^] FTW

    Buckrogerz

    The Lounge algorithms sales regex help question

  • TWCP OTD (The Who Cares Puzzle Of The Day) - 26th of January, 2017
    B buckrogerz 0

    While I like your answer better! 1000/8= 125 so 8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+ 8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+ 8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+ 8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+ 8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8+8

    Buckrogerz

    The Lounge json help question

  • I hate Microsoft (well today anyway)
    B buckrogerz 0

    Have you not learned anything yet Joshua! The only winning move is not to play

    Buckrogerz

    The Lounge database linux question announcement

  • I like Win8.1: What Would Compel Me to Upgrade?
    B buckrogerz 0

    I find it interesting that all the talk is on the UI changes. Nothing about how MS is trying to make the OS a service and the collection of our data. Yes you can talk about Facebook and Google and how they already do it. That does not make it right. I personally do not use Facebook it escapes me why I would want to put my dirty laundry out for all to see. Google I do use but limited I sure do not use Gmail and I sure will not do any banking on a Google OS.

    Buckrogerz

    The Lounge question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups