Time of Update: 2018-12-05
O:對象 OOA,OOD,OOPR:關係 關係型資料庫M:mapping 映射Apache OJB,JDO,Oracle Toplink,EJB(CMP)、JPA,IBatis阻抗不匹配POJO:最純粹的java對象。 透明持久化,沒有侵入性(輕量級)使用情境:增刪改查 不適合的情境:批量修改,使用資料庫的特定功能 1、理解ORM原理2、掌握Hibernate開發的相關知識3、能使用Hibernate進行項目開發4、進階,效能最佳化 Hibernate:創始人Gavin
Time of Update: 2018-12-05
1、hibernate.cfg.xml檔案,設定資料庫串連資訊和實體的對應檔資訊 <hibernate-configuration> <session-factory> <property name="hibernate.connection.url">jdbc:mysql://localhost/hibernate_first</property> <property
Time of Update: 2018-12-05
用法:http://www.position-relative.net/creation/formValidator/demoValidators.html1.頁面中引入js jquery.js, jquery.validateEngine.js2.在需要驗證的表單上寫class類 如
Time of Update: 2018-12-05
應用程式事件的管道不僅僅限於對.aspx Web表單的請求,他還可用於建立自己的處理常式來處理自訂的檔案類型。所有asp.net 應用程式的請求都在稱為HTTP處理常式的特殊組件處理。HTTP處理常式是asp.net請求處理架構的骨架。在web.config中的配置<httpHandlers> <add verb="*" path="source.simple" type="SourceHandler"/> <add
Time of Update: 2018-12-05
select aaa.*,bbb.required,bbb.elective from (select c.student_id,c.chinese_name,c.user_class, sum(decode(b.coursetype,1,a.credit,0)) get_required_total,sum(decode(b.coursetype,0,a.credit,0)) get_elective_total,
Time of Update: 2018-12-05
這裡的myFile是FileInfo的一個執行個體如果設定一個檔案為唯讀,我們需要位元運算符來操作if ((myFile.Attributes & FileAttributes.ReadOnly) != 0) { ... } 可以設定檔案的特性-增加檔案的唯讀類型myFile.Attributes=myFile.Attributes|FileAttributes.ReadOnly; 移除檔案的唯讀類型 myFile.Attributes=
Time of Update: 2018-12-05
protected void cmdUpload_Click(object sender, EventArgs e) { // Check if a file was submitted. if (Uploader.PostedFile.ContentLength != 0) { try { if (Uploader.PostedFile.ContentLength >
Time of Update: 2018-12-05
經過了數月的鑽研、開發,我們的維思實驗室平台終於上線了。現在搞的都是公益事業,主要是為了讓大家體驗各種最新的開發技術,同時不需要在自己的電腦上安裝這些工具。目前平台的學習內容包括:F#入門、ASP.NET MVC 2.0 、Siverlight、ASP.NET Web Form 4.0和SQL Server 2008
Time of Update: 2018-12-05
一、資料庫nomount狀態啟動第一步,ORACLE首先尋找參數檔案(pfile/spfile)。然後根據參數中的設定(如記憶體配置等設定),建立執行個體(Instance),分配記憶體,啟動後台進程。整個過程可以查看ALTERT(警告)日誌(如何查詢路徑,用sqlplus,show parameter backgound_dump_dest). NOMOUNT的過程也就是啟動資料庫執行個體的過程.SQLPLUS /nologconn /as sysdbashutdown
Time of Update: 2018-12-05
可以採用替代的解決方案 <ListBox x:Name="selectBookListBox" SelectionChanged="selectBookListBox_SelectionChanged"><ListBox.ItemTemplate><DataTemplate
Time of Update: 2018-12-05
一、三層架構 展示層、業務層、資料層二、原廠模式 實體層model、介面層idal、資料庫應用程式層dbunitity、資料庫操作層sqlserverdal、業務層bll、展示層bl三、MVC 模型 - 視圖 - 控制器 現在我們總結MVC的處理過程,首先控制器接收使用者的請求,並決定應該調用哪個模型來進行處理,然後模型用商務邏輯來處理使用者的請求並返回資料,最後控制器用相應的視圖格式化模型返回的資料,並通過展示層呈現給使用者。
Time of Update: 2018-12-05
主要是要設定HorizontalContentAlignment的值,而不是HorizontalAlignment Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 <ListBox x:Name="xxx"> 2 <ListBox.ItemContainerStyle> 3 <Style
Time of Update: 2018-12-05
.NET 3.5以後,WCF中提供了WebGet的方式,允許通過url的形式進行Web 服務的訪問。在以前的代碼中,寫過多次類似的例子,但總是忘記如何配置,現在將設定步驟記錄如下:endpoint通訊通訊協定設定成 webHttpBindingendpoint的行為設定成 <webHttp />在介面上加入 WebGet 的Attributes範例程式碼如下:web.config檔案的配置
Time of Update: 2018-12-05
jsp:forward兩個request是不同的對象,但是能取到前面頁面的參數,和用戶端只有一次來回,改跳轉在伺服器端完成,轉走之後,後面的代碼不會執行。只能在伺服器內部轉換,不能請求到任意URL;可以傳遞參數<jsp:param name=”name” value=”value” >; 地址欄沒有變化。轉向
Time of Update: 2018-12-05
需要在三個地方做處理:1 . 定義Convertor public class RememberStatusConvertor : IValueConverter {public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var rememberStatus =
Time of Update: 2018-12-05
介面布置如,這個案例是依照《C#程式設計實用教程》(唐耀)寫的,每個銨鈕的Tag屬性分別設定成0,1,2,3,4,-1代碼如下。建立兩個類,一個是事件類別,一個是Break類代碼如下://Break.csusing System;using System.Collections.Generic;using System.Text; namespace WinFormEvent{ class Break { public delegate void
Time of Update: 2018-12-05
用一個迴圈來驗證(100000次),以下是代碼. Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-05
///Form1.cs the form contains a textbox and a buttonusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace 表單間通迅{ public partial
Time of Update: 2018-12-05
Domain Model :領域模型 DDD領域驅動設計 只有狀態沒有行為 只有狀態又有行為(方法)Pattern:模式Framework:架構,基礎性服務UI Layer:StrutsBusiness Layer:SpringPersistence
Time of Update: 2018-12-05
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms; namespace TrayIcon{ public partial class Form1 : Form { private Icon ico =