Ejemplo n.º 1
0
 private void InitializeObject(FMObjectSpace aObjectSpace)
 {
     attributes  = new Dictionary <string, FMAbstractAttribute>();
     Subscribers = new Dictionary <FMAttribute_derived, int>();
     objectSpace = aObjectSpace;
     aObjectSpace.AllObjects.Add(this);
 }
Ejemplo n.º 2
0
        public FMExpressionHandler(FMObjectSpace aObjectSpace)
        {
            objectSpace = aObjectSpace;
            Operations = new Dictionary<string, Delegate>();

            // The keys have to be in lower case
            Operations.Add("->select", (ParamOperation)Select);
            Operations.Add("->first", (NamedOperation)First);
            Operations.Add("->sum", (NamedOperation)Sum);
            Operations.Add("->size", (NamedOperation)Size);
            Operations.Add("->sqrt", (NamedOperation)Sqrt);
            Operations.Add("->tostring", (NamedOperation)ToString);
        }
Ejemplo n.º 3
0
        public FMExpressionHandler(FMObjectSpace aObjectSpace)
        {
            objectSpace = aObjectSpace;
            Operations  = new Dictionary <string, Delegate>();

            // The keys have to be in lower case
            Operations.Add("->select", (ParamOperation)Select);
            Operations.Add("->first", (NamedOperation)First);
            Operations.Add("->sum", (NamedOperation)Sum);
            Operations.Add("->size", (NamedOperation)Size);
            Operations.Add("->sqrt", (NamedOperation)Sqrt);
            Operations.Add("->tostring", (NamedOperation)ToString);
        }
Ejemplo n.º 4
0
 public FMObject(FMObjectSpace aObjectSpace, string aObjectGUID)
 {
     objectGUID = aObjectGUID;
     InitializeObject(aObjectSpace);
 }
Ejemplo n.º 5
0
 public FMObject(FMObjectSpace aObjectSpace)
 {
     objectGUID = Guid.NewGuid().ToString();
     InitializeObject(aObjectSpace);
 }
Ejemplo n.º 6
0
 private void InitializeObject(FMObjectSpace aObjectSpace)
 {
     attributes = new Dictionary<string, FMAbstractAttribute>();
     Subscribers = new Dictionary<FMAttribute_derived, int>();
     objectSpace = aObjectSpace;
     aObjectSpace.AllObjects.Add(this);
 }
Ejemplo n.º 7
0
 public FMPersistenceHandler(FMObjectSpace aObjectSpace)
 {
     objectSpace   = aObjectSpace;
     fDBConnection = new SqlConnection(@"Data Source=OPTIPLEX\SQLEXPRESS;Initial Catalog=FMSim;Integrated Security=True");
 }
Ejemplo n.º 8
0
 public FMObject(FMObjectSpace aObjectSpace, string aObjectGUID)
 {
     objectGUID = aObjectGUID;
     InitializeObject(aObjectSpace);
 }
Ejemplo n.º 9
0
 public FMObject(FMObjectSpace aObjectSpace)
 {
     objectGUID = Guid.NewGuid().ToString();
     InitializeObject(aObjectSpace);
 }
Ejemplo n.º 10
0
 public FMPersistenceHandler(FMObjectSpace aObjectSpace)
 {
     objectSpace = aObjectSpace;
     fDBConnection = new SqlConnection(@"Data Source=OPTIPLEX\SQLEXPRESS;Initial Catalog=FMSim;Integrated Security=True");
 }
Ejemplo n.º 11
0
 public FMSubscriptionHandler(FMObjectSpace aObjectSpace)
 {
     objectSpace = aObjectSpace;
     Subscribers = new Stack <FMSim.ORM.FMObject.FMAttribute_derived>();
 }
Ejemplo n.º 12
0
 public FMSubscriptionHandler(FMObjectSpace aObjectSpace)
 {
     objectSpace = aObjectSpace;
     Subscribers = new Stack<FMSim.ORM.FMObject.FMAttribute_derived>();
 }