Remove unnecessary Disposes
Remove Old comments
This commit is contained in:
parent
f5378a0f27
commit
af5f3056d9
@ -1543,9 +1543,7 @@ namespace <%=_nameSpace%>
|
||||
{<%=DebugLine("20070427.1")%>
|
||||
<%=_className%> tmp = <%=_className%>.New(<%=FormatColumns("{local}",makeList,", ","")%>);
|
||||
<%=FormatColumns(dicCheck,makeList3,"\r\n","\t\t\t")%>
|
||||
<%=_className%> tmp2 = tmp.Save();
|
||||
tmp.Dispose();
|
||||
return tmp2;
|
||||
return tmp.Save();
|
||||
}<%
|
||||
}
|
||||
string sExtra1= "";
|
||||
@ -1739,11 +1737,7 @@ namespace <%=_nameSpace%>
|
||||
}
|
||||
%>
|
||||
if (tmp.IsSavable)
|
||||
{
|
||||
<%=_className%> tmp2 = tmp;
|
||||
tmp = tmp2.Save();
|
||||
tmp2.Dispose();
|
||||
}
|
||||
tmp = tmp.Save();
|
||||
else
|
||||
{
|
||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||
@ -4548,7 +4542,7 @@ private void vlnDataPortalFetch(string sPrefix,IColumns cols,string sql,bool get
|
||||
vlnProperty(RelObjType( column ) + (bInfo?"Info":"") ,sMember
|
||||
,sProp,";"+DebugLine("20070501.4"),"",bReadOnly,column.IsInPrimaryKey,false,null,sCheck,sCheck2,sCheck3);
|
||||
//if (sProp.StartsWith("My"))_refreshMine += string.Format("\t\t\t{0} = null;\r\n",sMember);
|
||||
if (sProp.StartsWith("My"))AddRefreshMine(sMember);
|
||||
//if (sProp.StartsWith("My"))AddRefreshMine(sMember);
|
||||
}
|
||||
}
|
||||
private void AddRefreshMine(string sMember)
|
||||
@ -4679,7 +4673,7 @@ private void vlnDataPortalFetch(string sPrefix,IColumns cols,string sql,bool get
|
||||
string sBy = FKBy(FK);
|
||||
string sProp = "My" + sClass + sAlias;
|
||||
//_refreshMine += string.Format("\t\t\t{0} = null;// Reset related value\r\n",sMember);
|
||||
AddRefreshMine(sMember);
|
||||
//AddRefreshMine(sMember);
|
||||
%>
|
||||
private <%=sClass%>Info <%=sMember%> = null;
|
||||
[TypeConverter(typeof(<%=sClass%>InfoConverter))]
|
||||
|
Loading…
x
Reference in New Issue
Block a user