AS3AIR适用于数据库应用程序吗?AS3中的SQL和C#中的SQL一样快吗?WPF与FLASH

本文关键字:中的 SQL 一样 FLASH WPF 数据库 适用于 应用程序 AS3 AS3AIR | 更新日期: 2023-09-27 18:24:39

我真的不知道我的问题的标题应该是什么,也不知道如何解释我的问题,但我认为如果你考虑阅读其余部分,你会解决我的问题。如果你能帮助我,我将非常感激。

我已经使用这两种语言构建了应用程序(Visual Studio 2010中的C#和Flash Professional CS6中的Actionscript 3.0 AIR)。

我使用AIR为一家研究所制作了一个桌面应用程序,应用程序保存、修改、删除、检索和生成报告(我不知道这些应用程序叫什么,但我认为它们叫数据库应用程序)。

我使用XML文件来存储信息(我的应用程序数据库),并使用基本的XML查询,如:-

  xml.students.(name == NAME).payments //getting the payment-list of a student

以及我自己的修改和生成报告的算法。例如,此代码显示所有学生的一般信息:-

  var newData:DataProvider = new DataProvider();
  for(var i:Number = 0;i < xml.student.length();i++)
  {
    newData.addItem({"Name":xml.student[i].name,"Gender":xml.student[i].gender}); 
  }
  
  /*
  i have reduced the code above to add only the students' name and gender
  otherwise the complete code would add all the students' general info to
  the variable 'newData'.
  for those who are not familiar with AS 3.0,this code will make an object
  that contains the students' name and gender,then add that object to
  the variable 'newData' which is connected to a datagrid.
  here is a porrtion of my XML file (database):-
  */
    <data>
      <student>
         <name>Raman Ubeyt Ahmet</name>
         <instrument>Tar</instrument>
         <gender>Male</gender>
         <teacher>Rasti</teacher>
         <shift>4:00 - 5:00</shift>
           <payment>
              <pay>
                <date>2013'7'12</date>
                <fee>50000</fee>
              </pay>
           </payment>
      </student>
   </data>
/*
the actual XMl file would contains 200+ students, each with a large 
and growing number of payment data '<pay><date>...</pay>'.
another report that my program generates shows all students' info, plus each
student's last payment which i think XML can not handle.
*/

过了一段时间,我了解到XML不是一个数据库,也不适合作为数据库。我的应用程序现在运行正常,但我认为将来200多名学生,我认为这是大量的数据,无法使用XML和我的算法快速检索和修改,程序会减慢速度,并可能引发异常。

我正在考虑使用SQL,但我不知道AIR中的SQL是否像C#中那样强大(因为C#是为商业应用程序设计的,它有LINQ to SQL),如果AIR中的SQL像C#中一样强大,那么我会修改我的程序,使其使用SQL,否则我会使用WPF,但我也不知道我是否可以在WPF中设计相同的接口。如果你认为这个程序可以很好地工作,XML可以处理它,那么请告诉我!以下是我脑海中的问题:-

我能在WPF中设计Flash设计的界面吗?如果我在AIR中使用SQL,它会像使用C#一样工作吗?actionscript 3.0 AIR适合商业应用程序吗?或者我应该重新创建

C#中的程序?再次感谢你,很抱歉让你一直呆到这里。如果你能帮助我,我将不胜感激。

AS3AIR适用于数据库应用程序吗?AS3中的SQL和C#中的SQL一样快吗?WPF与FLASH

关系型存储不会因为消费者平台的不同而变慢。

有意义的是:

  • 数据访问策略
  • 缓存或不缓存数据
  • 编写高效查询
  • 正确处理数据库连接

另一方面,WPF是一个仅面向Windows的桌面应用程序UI框架。与Adobe Air相比,它非常棒,也非常出色,但它不是跨平台的。

微软对Adobe Air的回应是Silverlight,但它几乎是一项死技术。

actionscript 3.0 AIR适合商业应用程序吗?或者我应该用C#重新创建我的程序?

这是非常主观的。这取决于你和你的实际目标。有许多WPF/Silverlight/WindowsForms业务应用程序,也有一些是在Air之上制作的。

这不是工具。这是关于谁使用这个工具。这也是关于你的应用程序的受众,你的目标是什么。。。

对您来说,最好的答案是只需对您的业务需求进行技术分析,并匹配哪些需求在您喜爱的一些开发平台中得到了最好的解决