views:

17

answers:

0

I am experiencing the same error and stack trace as this question. However, I am using the latest code from github as of today (6/11/2010) and I am not having the compilation problems mentioned in the other answer. Other differences from the other poster:

  • My class looks like this:

    public class ActiveRecordClass1
    {
        private List<ActiveRecordClass2> collection;
    
    
    
        public void OnSaved()
        {
            foreach(var o in collection)
            {
               o.Save();
            }
        }
    
    }

I get the exception on the o.Save(); line so it looks like provider is not null for the outer class but null for the inner class. I am loading the list by using (List<ActiveRecordClass2>)ActiveRecordClass2.Find(x => ...);

  • I am using .NET 4.0 instead of 3.5.

Does anyone know of a fix or workaround (maybe a workaround in ActiveRecord.tt)?