コード例 #1
0
        public static FeedFormula[] getFeedFormula()
        {
            DataRowCollection dataRowCollection = Database.getRows("Select * From tableFeedFormula ORDER BY ID ASC");

            FeedFormula[] fList = new FeedFormula[dataRowCollection.Count];
            for (int i = 0; i < fList.Length; i++)
            {
                FeedFormula f = FeedFormula.Create(dataRowCollection[i]);
                fList[i] = f;
            }

            return(fList);
        }
コード例 #2
0
 public static FeedFormula getFeedFormula(String name)
 {
     return(FeedFormula.Create(Database.getRows("Select * From tableFeedFormula WHERE FormulaName='" + name + "'")[0]));
 }
コード例 #3
0
 public static FeedFormula getFeedFormula(int index)
 {
     return(FeedFormula.Create(Database.getRows(string.Format("Select * From tableFeedFormula WHERE ID={0}", index))[0]));
 }